Can you find out the IP SSH-ing your computer?

SSH connection info is also stored in the SSH_CONNECTION environmental variable.

You should be able to view this by entering echo $SSH_CONNECTION.


Yes. Just run netstat:

netstat --tcp --numeric

Look for the IP using the port 22. --numeric forces netstat to show IPs and --tcp only shows TCP connections


Yes, and here is how in Windows:

The netstat -a command shows all conections as they happen.

enter image description here

I am not a Linux guru, but it is very similar, and the actual base command is the same, I believe:

http://www.thegeekstuff.com/2010/03/netstat-command-examples/