title: Access SSH client IP address, within a screen session
body: <p>Accessing the IP address of a connecting SSH client is possible via environment variables (such as SSH_CONNECTION), as described in</p>
  
  <p><a href="https://stackoverflow.com/questions/996231/find-the-ip-address-of-the-client-in-an-ssh-session">Find the IP address of the client in an SSH session</a></p>
  
  <p>In a GNU screen session though, those environment variables are defined by whoever started the screen to begin with. Is there any way to also get hold of the SSH connection information, for someone who enters an already-existing screen session later, like from another host?</p>
  
  <p>I can't think of a way to determine this, but this can be useful in cases where screen sessions are shared between different people, for example.</p>