I have had a couple of occasions where I was unable to remember the IP address for a given system but was, at the time, able to connect using the hostname. As an example, just now I wanted to set up port forwarding on my router and couldn't remember the IP for the target system.
I am wondering if it is possible to add the system's IP address to the welcome message that gets displayed on an SSH connection.
The default welcome message that I am trying to modify, in case that term is ambiguous, is"
Linux [hostname] 2.6.35-32-generic #64-Ubuntu SMP Tue Jan 3 00:47:07 UTC 2012 x86_64 GNU/Linux Ubuntu 10.10 Welcome to Ubuntu! * Documentation: https://help.ubuntu.com/
Somewhere in there I think I'd like to add the IP address of the system I just logged in to. Any suggestions? Other than trading in my brain for a newer model with more RAM?