You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When fish is installed and configured as the default shell, ProxyJump in SSH does not work, that is, ssh -J user@jumphost user@destination host fails.
SSH [to the jump host] without ProxyJump works, and if the user's [default] shell is, e.g. bash, then ProxyJump also works.
To Reproduce
Steps to reproduce the behavior:
Install fish shell using pengwin-setup, setting the default shell to fish
Attempt to SSH to a host via an intermediary host using ProxyJump (-J):
user@mypc:~$ echo$SHELL
/usr/bin/fish
user@mypc:~$ ssh -J user@jumphost remoteuser@destinationhost
Bad packet length 1349676916.
ssh_dispatch_run_fatal: Connection to UNKNOWN port 65535: message authentication code incorrect
user@mypc:~$
Note the error 'Bad packet length. Using ssh -vvvshows this happens at theSSH2_MSG_KEXINIT sent` step for the destination host.
Expected behavior
The SSH command should succeed regardless of the user's shell.
Additional context
The error is related to output in the shell initialisation script, see e.g. eval in config.fish breaks ssh proxy command.
In particular, /etc/fish/conf.d/00-pengwin.fish seems to be the culprit (see additional troubleshooting below).
The patch in WhitewaterFoundry/pengwin-base#119 fixes this by skipping the offending line in 00-pengwin.fish for non-login shells (which is the case for the ProxyJump step).
Describe the bug
When
fish
is installed and configured as the default shell,ProxyJump
in SSH does not work, that is,ssh -J user@jumphost user@destination host
fails.SSH [to the jump host] without
ProxyJump
works, and if the user's [default] shell is, e.g.bash
, thenProxyJump
also works.To Reproduce
Steps to reproduce the behavior:
pengwin-setup
, setting the default shell tofish
ProxyJump
(-J
):. Using
ssh -vvvshows this happens at the
SSH2_MSG_KEXINIT sent` step for the destination host.Expected behavior
The SSH command should succeed regardless of the user's shell.
Additional context
The error is related to output in the shell initialisation script, see e.g. eval in config.fish breaks ssh proxy command.
In particular,
/etc/fish/conf.d/00-pengwin.fish
seems to be the culprit (see additional troubleshooting below).Basic Troubleshooting Checklist
[X] I have searched Google for the error message.
[X] I have checked official WSL troubleshooting documentation: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#confirm-wsl-is-enabled.
[X] I have searched the official Microsoft WSL issues page: https://github.com/Microsoft/WSL/issues.
[X] I have searched the Pengwin issues page: https://github.com/WhitewaterFoundry/Pengwin/issues.
[ ] I have run Windows 10 updates and restarted.
[X] I have restarted WSL service:
wsl.exe --terminate WLinux
wsl.exe --shutdown
.What other troubleshooting have you attempted?
bash
(by setting theSHELL
environment variable, but could also do viachsh
and logging in and out):user@mypc:~$ sudo mv /etc/fish/conf.d/00-pengwin.fish /etc/fish/conf.d/00-pengwin.fish.bak
fish
:Pengwin Version
21.9.0
WSL general info
The text was updated successfully, but these errors were encountered: