check for the SSH_CONNECTION env var before attempting to use it