Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Ok, so at my house I have three computers, and I frequently enjoy using ssh and scp to run commands that allow me to do wonderful things. Primarily transferring downloaded files, and running media remotely (music, video etc.). Usually I use the arp -a command to determine which other computers are on my network, but this only shows the local IP's. I often forget the users that exist on my other machines, and I would like to be able to:

have a command that shows me the users of a remote computer either by network or IP address

share|improve this question
    
possibly related: unix.stackexchange.com/questions/20708/… –  slm Jun 30 '13 at 5:45
add comment

2 Answers

You can use ssh to execute a command the the remote host.
E.g. the w or the who command.

ssh username@otherhost.domain.tld who

share|improve this answer
add comment

You can run rwhod on each node. Then run rwho on any node to list users on other nodes.

rwho and rwhod are part of the Linux netkit, so most likely it's already packaged with your distribution. Just install it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.