SSH_CLIENT is undocumented (and it seems deprecated)
SSH_CLIENT is undocumented (and it seems deprecated)

There is SSH_TTY that is also set as an environment value.
It is set when SSH session is established and the current shell/command is associated with a tty.

To check whether the shell is connected with SSH, it is enough to check SSH_CONNECTION only.

curipha/dotfiles