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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| Host | string | Yes | Host name or IP address of the SSH server. | |
| Username | string | Yes | SSH username. | |
| Host Key | string | Yes | The 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. | |
| Password | string | SSH 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 Key | string | PEM-encoded private key. Either a password or a private key is required. | ||
| Port | integer | 22 | SSH port. | |
| Terminal Type | string | linux | Terminal type reported to the server. | |
| Columns | integer | 80 | Screen width in characters. | |
| Rows | integer | 24 | Screen height in lines. | |
| Encoding | string | latin-1 | Character set of the text the server sends and receives. One of: latin-1, utf-8. | |
| Function Keys | string | putty | Which terminal's escape sequences to send for F1 to F5, Home and End. One of: putty, xterm, linux. | |
| Scrollback Lines | integer | 2000 | Lines kept after they scroll off the screen. | |
| Connect Timeout (ms) | integer | 15000 | Time allowed to connect, authenticate, and start the shell. | |
| Key Exchange Algorithms | array | Overrides the secure defaults, for legacy servers only (e.g. diffie-hellman-group1-sha1). | ||
| Host Key Algorithms | array | Overrides the secure defaults, for legacy servers only (e.g. ssh-rsa). | ||
| Ciphers | array | Overrides the secure defaults, for legacy servers only (e.g. aes128-cbc). | ||
| MACs | array | Overrides the secure defaults, for legacy servers only (e.g. hmac-sha1). |
Outputs
| Name | Type | Description |
|---|---|---|
| outputVariable | reference | The name of the variable where the terminal session will be stored and can be referenced in later steps. |