SSH, The Secure Shell: The Definitive Guide, 2nd Edition
by Daniel J. Barrett, Richard E. Silverman, Robert G. Byrnes
Environment Variables
Variable | Set by | In | Meaning |
|---|---|---|---|
SSH_ASKPASS | ssh user | OpenSSH | Path to askpass program |
SSH_AUTH_SOCK | ssh-agent | OpenSSH | Path to socket |
SSH2_AUTH_SOCK | ssh-agent | Tectia | Path to socket |
SSH_CLIENT | sshd | OpenSSH | Client socket info |
SSH2_CLIENT | sshd | Tectia | Client socket info |
SSH_CONNECTION | sshd | OpenSSH | Client and server socket info |
SSH_ORIGINAL_COMMAND | sshd | OpenSSH | Client’s remote command string |
SSH_ORIGINAL_COMMAND2 | sshd | Tectia | Client’s remote command string |
SSH_SOCKS_SERVER | ssh user | Tectia | SOCKS firewall information |
SSH_TTY | sshd | OpenSSH | Name of allocated TTY |
SSH2_TTY | sshd | Tectia | Name of allocated TTY |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access