Skip to content

Commit a878b3e

Browse files
committed
ssh: document using alternate 'ssh' executables
1 parent 9ab6b4d commit a878b3e

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docs/features/ssh.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,20 @@ Passing `--cache=false` to `+ssh` bypasses both the read and the
6969
write for a single invocation, without touching the cache. This is
7070
useful for scripting ("always reinstall") and for debugging issues.
7171

72+
### Alternate `ssh` Executable
73+
74+
By default `+ssh` exec's the first `ssh` on your `PATH`. The
75+
`--ssh=PATH` flag points it at a specific client instead:
76+
77+
```sh
78+
ghostty +ssh --ssh=/opt/homebrew/bin/ssh -- user@example.com
79+
```
80+
81+
This is useful when you have an alternate OpenSSH build or wrapper
82+
client that you want `+ssh` to use. The path must resolve to an
83+
executable; if it doesn't, `+ssh` fails rather than silently falling
84+
back to the `PATH` `ssh`.
85+
7286
## The `+ssh-cache` CLI Action
7387

7488
`ghostty +ssh-cache` manages the terminfo cache used by `+ssh`:

0 commit comments

Comments
 (0)