If i have an operating system with multiple users logged in via ssh, is there any way i can find which physical machine is associated with each /dev/pts/N (where N is an integer)? All i know is the
who
and
ps -aux
commands that will show which user or process is associated with the device files, but can i get any more information about the physical machine that the user/process comes from? Maybe an I.P.?
ps
to find what processes are using a givenpts
device, and potentially backtrack from there. – larsks May 02 '22 at 15:38ss
(ornetstat
) command might be more useful (e.g.,ss -tnp | grep sshd
) – larsks May 02 '22 at 15:38