Just in case you want to know what IP address an SSH client is coming from, or what address they used to log in (such as internal vs. external addresses), the ssh daemon puts a bit of useful stuff in environment variables for you. $SSH_CLIENT and $SSH_CONNECTION are the most useful.