Skip to main content

Terminal Open

Opens an SSH terminal session and keeps its screen in an emulator, for driving text-based (green-screen) applications without a desktop window.

Category: Terminal Sessions (SSH) · Group: Terminal · Activity name: TerminalOpen

Example​

outputVariable = TerminalOpen("<host>", "<username>", hostKey="<hostKey>", password="<password>", privateKey="<privateKey>", port=22, term="linux", width=80, height=24, encoding="latin-1", functionKeys="putty", scrollback=2000, connectTimeout=15000, kexAlgorithms=[], hostKeyAlgorithms=[], ciphers=[], macs=[])

Inputs​

NameTypeRequiredDefaultDescription
HoststringYesHost name or IP address of the SSH server.
UsernamestringYesSSH username.
Host KeystringYesThe server's expected host key, as an authorized_keys line or a SHA256: fingerprint. The connection is refused if the server presents a different key.
PasswordstringSSH password, also used for keyboard-interactive authentication. Either a password or a private key is required. Load it as a secret so it is redacted from logs.
Private KeystringPEM-encoded private key. Either a password or a private key is required.
Portinteger22SSH port.
Terminal TypestringlinuxTerminal type reported to the server.
Columnsinteger80Screen width in characters.
Rowsinteger24Screen height in lines.
Encodingstringlatin-1Character set of the text the server sends and receives. One of: latin-1, utf-8.
Function KeysstringputtyWhich terminal's escape sequences to send for F1 to F5, Home and End. One of: putty, xterm, linux.
Scrollback Linesinteger2000Lines kept after they scroll off the screen.
Connect Timeout (ms)integer15000Time allowed to connect, authenticate, and start the shell.
Key Exchange AlgorithmsarrayOverrides the secure defaults, for legacy servers only (e.g. diffie-hellman-group1-sha1).
Host Key AlgorithmsarrayOverrides the secure defaults, for legacy servers only (e.g. ssh-rsa).
CiphersarrayOverrides the secure defaults, for legacy servers only (e.g. aes128-cbc).
MACsarrayOverrides the secure defaults, for legacy servers only (e.g. hmac-sha1).

Outputs​

NameTypeDescription
outputVariablereferenceThe name of the variable where the terminal session will be stored and can be referenced in later steps.