Skip to content

Function: isSsh()

isSsh(env?): boolean

Defined in: packages/aiui-util/src/environment.ts:47

Whether this shell is an SSH session. Checks all three of sshd's markers — SSH_TTY is only set for interactive sessions, and SSH_CONNECTION / SSH_CLIENT can be scrubbed by a paranoid shell profile, so any one of them is taken at its word. Empty values count as unset.

Parameters

env?

ProcessEnv = process.env

Returns

boolean