Skip to main content

in_ssh_session

Function in_ssh_session 

Source
pub fn in_ssh_session() -> bool
Expand description

Returns true if the current process appears to be running inside an SSH session, based on the SSH_* environment variables OpenSSH’s sshd sets when forking a login shell. Suppresses browser auto-open and desktop handoff during cinch auth login.