-
-
Notifications
You must be signed in to change notification settings - Fork 817
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
wezterm ssh user@host some command
This is mostly useful for folks on Windows, as you can also run `wezterm start ssh user@host some command` to run the `ssh` binary in a local pty and let it manage your ssh session. On Windows the local pty currently breaks mouse reporting (see microsoft/terminal#376) so it is desirable to avoid using a local pty if we're going to talk to a remote system. This commit makes it a bit more convenient to establish an ad-hoc ssh session with a pty on a remote host. This method uses libssh2 under the covers and thus doesn't support gssapi, which is potentially frustrating for kerberized environments, but works ok for the majority of users. There are two issues that I want to resolve in follow up work: * The TERM has to be sent very early in the channel establishment, before we "know" the TERM in the `portable-pty` interface. Will need to figure out how to specify that earlier in an appropriate way. * Similarly, if no command is specified, we should request the use of the shell subsystem but we don't have a way to capture this intend with the cmdbuilder. Will need to solve this too.
- Loading branch information
Showing
3 changed files
with
226 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters