When logging in via SSH, I'd like to know, during the execution of .bashrc
, the name of the host that is connecting.
Ubuntu Server shows the prompt:
Last login: Fri Feb 14 11:34:55 2014 from somehost.local
...so this information is available somewhere.
How can I access it?