Files
LLeMbas-TTY/docs/config/lua/config/mux_enable_ssh_agent.md
T
Wez Furlong 4af418fddd mux: enable ssh agent forwarding
This is done with a wezterm twist: not only is the auth sock forwarded,
but the mux on the remote end will automatically maintain a symlink to
point to the auth sock of the most recently active mux client, and set
SSH_AUTH_SOCK to that symlink so that your remote panes should always be
referencing something sane.

refs: https://github.com/wez/wezterm/issues/1647
refs: https://github.com/wez/wezterm/discussions/988
2024-05-09 12:52:29 -07:00

794 B

tags
tags
multiplexing
ssh

mux_enable_ssh_agent = true

{{since('nightly')}}

When set to true (the default), wezterm will configure the SSH_AUTH_SOCK environment variable for panes spawned in the local domain.

The auth sock will point to a symbolic link that will in turn be pointed to the authentication socket associated with the most recently active multiplexer client.

You can review the authentication socket that will be used for various clients by running wezterm cli list-clients and inspecting the SSH_AUTH_SOCK column.

The symlink is updated within (at the time of writing this documentation) 100ms of the active Mux client changing.

You can set mux_enable_ssh_agent = false to prevent wezterm from assigning SSH_AUTH_SOCK or updating the symlink.