ssh command establishes an SSH connection to a remote system using WezTerm’s built-in SSH client.
Synopsis
Description
Establishes an SSH session to a remote system. WezTerm includes a built-in SSH client that can parse SSH configuration files and provides a native terminal experience with full feature support.Arguments
Specifies the remote system using the form:
[username@]host[:port]- If
username@is omitted, your local$USERis used - If
:portis omitted, the standard SSH port (22) is used
Instead of executing your shell, run PROG on the remote system.Example:This will spawn bash as if it were a login shell on the remote system.
Options
Override specific SSH configuration options. Can be specified multiple times.WezTerm’s SSH client can parse some (but not all!) options from your
~/.ssh/config and /etc/ssh/ssh_config files. This command line switch allows you to override or otherwise specify ssh_config style options.Example:Enable verbose SSH protocol tracing.The trace information is printed to the stderr stream of the process. Useful for debugging connection issues.
Override the default windowing system class. The default is
org.wezfurlong.wezterm.- Under X11 and Windows: changes the window class
- Under Wayland: changes the app_id
Override the position for the initial window launched by this process.Format options:
--position 10,20- set x=10, y=20 in screen coordinates--position screen:10,20- set x=10, y=20 in screen coordinates--position main:10,20- set x=10, y=20 relative to the main monitor--position active:10,20- set x=10, y=20 relative to the active monitor--position HDMI-1:10,20- set x=10, y=20 relative to the monitor named HDMI-1
Examples
Basic SSH connection
Connect to non-standard port
Use specific identity file
Multiple SSH options
Enable verbose debugging
Run a specific command
Open at specific window position
SSH Configuration
WezTerm respects your SSH configuration files:~/.ssh/config/etc/ssh/ssh_config
Features
- Built-in SSH client (no external SSH binary required)
- Supports SSH agent forwarding
- Respects SSH config files
- Full terminal feature support (colors, mouse, clipboard, etc.)
- Integrated with WezTerm’s multiplexer capabilities
Related
- wezterm connect - Connect to pre-configured multiplexer domains
- wezterm start - Start a local terminal session