Skip to content

Conversation

SuperSandro2000
Copy link
Member

sudo ssh with JumpHost is right now broken.
/nix/store/x411w196j7fvznixm9517mya5g3rhnvs-syschdemd/bin/.syschdemd-wrapped: line 114: exec: exec: not found

sudo NIXOS_WSL_DEBUG=1 ssh host
+ rundir=/run/nixos-wsl
+ pidfile=/run/nixos-wsl/unshare.pid
+ main -c 'exec ssh -l tunnel -W '\''[host]:22'\'' jumpHost'
+ ensure_root
+ '[' 0 -ne 0 ']'
+ '[' '!' -e /run/current-system ']'
+ '[' '!' -e /run/nixos-wsl ']'
+ is_in_container
+ '[' true == true ']'
+ '[' 2 -gt 0 ']'
+ shift
+ command='exec ssh -l tunnel -W '\''[host]:22'\'' jumpHost'
+ is_in_container
+ '[' true == true ']'
+ exec exec ssh -l tunnel -W ''\''[host]:22'\''' jumpHost
/nix/store/x411w196j7fvznixm9517mya5g3rhnvs-syschdemd/bin/.syschdemd-wrapped: line 114: exec: exec: not found
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535

This PR fixes that.

@nzbr nzbr added the bug Something isn't working label Nov 25, 2022
@nzbr nzbr merged commit fd92190 into nix-community:main Dec 1, 2022
@SuperSandro2000 SuperSandro2000 deleted the sudo-ssh-jumphost branch December 1, 2022 01:15
psvo added a commit to psvo/NixOS-WSL that referenced this pull request Dec 5, 2022
* upstream/main:
  Fix tests (nix-community#173)
  Fix sudo ssh with jumpHost (nix-community#167)
  Fix permissions for files in /dev/pts (nix-community#166)
  Fix setting custom nameservers through networking.nameservers (nix-community#157)
  Disable timesynced  (nix-community#159)
  Disable powerManagement (nix-community#160)
@nzbr nzbr changed the title Fix sudo ssh with jumpHost fix: sudo ssh with jumpHost Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants