1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__config_lalis/list_ssh

11 lines
126 B
Bash
Executable File

#!/usr/bin/sh
for x in `ps h -u ssh -o pid`
do
echo $x "=>"
grep ssh /proc/$x/status
if [ $? -eq 0 ]; then
echo $x
fi
done