Skip to content

Open ssh session in new tab using wezterm ssh? #3480

Answered by wez
adamshand asked this question in Q&A
Discussion options

You must be logged in to vote

In the latest release, wezterm will automatically populate ssh_domains from your ssh config.

If you have this in your ~/.ssh/config

Host example.nz

you'll have two ssh domains created:

  • SSH:example.nz - works like wezterm ssh
  • SSHMUX:example.nz - requires wezterm's multiplexer to be installed on the remote

armed with the domain name, you can do:

$ wezterm cli spawn --domain-name SSH:example.nz

to use the cli to spawn a new tab in that domain. Docs for wezterm cli spawn.

You can use CTRL-SHIFT-P (by default) to open the Command Palette and fuzzy match example.nz and spawn a connection that way, or just fuzzy match on ssh to find all your ssh hosts in there.

You can use the CTRL-SHIFT-L (b…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@wez
Comment options

wez Apr 11, 2023
Maintainer

@adamshand
Comment options

@neur1n
Comment options

@arthurgeek
Comment options

@codemedic
Comment options

Answer selected by wez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants