Open imgrant opened 2 years ago
Further troubleshooting
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).
Thank you for your contribution. I'll take the time to read the description and do some tests thoroughly.
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] withoutProxyJump
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):fish
:Pengwin Version
21.9.0
WSL general info