3
I allow remote ssh login to my Mac. However I only can see my local login when running command who. I'm sure a remote session has login my Mac via ssh.
localhost% who
kane console Jul 10 22:21
kane ttys000 Jul 10 22:21
kane ttys001 Jul 10 22:21
kane ttys002 Jul 10 22:21
kane ttys003 Jul 10 22:21
In a linux host, it logins my Mac via below command,
user 12098 11413 0 21:01 ? 00:00:00 /usr/bin/ssh -L 27002:127.0.0.1:27002 -R 27002:127.0.0.1:27003 -q -N -o stricthostkeychecking=no -R 20008:localhost:6500 -R 20002:localhost:22 username@myhost.com
But in the linux host, who command can list ssh login. How can I get remote ssh login listed in my Mac?
user@ubuntu-server:~$ who
user tty1 2012-07-05 18:26
user pts/1 2012-07-23 22:10 (123.120.xxx.xxx)
1Just for curiousity: Which of them finally did it on the Mac? – Izzy – 2012-07-24T07:54:08.030
1both
who
andw
are useful for identifying both local and remote sessions. I SSH'd into localhost and both of them were able to ID localhost as the origin.last
appears to work as well. – Kevin Mark – 2013-11-05T05:35:09.390