Okay, you've done the trick, now what's the reveal? How do you readily detect someone who has started their shell without TTY allocation?
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