Skip to content

Instantly share code, notes, and snippets.

@amigus
Created September 18, 2022 20:10
Show Gist options
  • Select an option

  • Save amigus/7aa8dc42eccb4036221294a02cb7f2af to your computer and use it in GitHub Desktop.

Select an option

Save amigus/7aa8dc42eccb4036221294a02cb7f2af to your computer and use it in GitHub Desktop.
PowerShell on Linux hack to allow SSH to 'exec' itself when using `ProxyJump`
#!/bin/sh
# PowerShell on Linux hack to allow SSH to "exec" itself when using `ProxyJump`
# It must be in the path and named `exec` to work
case "$(basename $0)" in exec) $* ;; *) exec $* ;; esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment