0
we've got an old ERP system running on RedHat 5. Now we need to force users to use SSH instead of TELNET, but we can't turn off TELNET now. Is there some command to display, who is connected via TELNET and who is connected via SSH? I tried it with PS, but it doesn't work. Thank you
1
In my Debian
– Kamil Maciorowski – 2019-02-11T07:06:01.140sshd
forks and there will be at least onesshd
process owned by my user if I connect via SSH. Sosudo pgrep -U kamil ^sshd$
will show something; otherwise nothing (and non-zero exit status). The command gives a false positive for user (root
in my case) that runs thesshd
daemon main process. I don't use telnet, so I cannot give you a good full answer, therefore just a comment. If this hint leads you to a useful solution then please add your own answer.