by raffi · 16y ago · 0 comments
See: An almost invisible ssh connection
ssh -T user@host /bin/bash -i
This connects you to a box with no TTY allocation. If someone types 'w', they will not see your connection.ssh -t user@host screen -ln
since you get a full fledged shell with job control and everything
sudo lsof -i :22
you can then reverse what people are doing based on the pids lsof gives you.[edit: using ps ax | grep sshd also works but you can't see where they are connecting from. [+1 daten]]
ps aux | grep sshd.*notty