Created
February 3, 2026 12:00
-
-
Save ormaaj/c1b8758f361aaad435929d566a9c6577 to your computer and use it in GitHub Desktop.
openssh ProxyCommand for ProxyUseFdpass SCM_RIGHTS IPC
This file contains hidden or 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
| ProxyUseFdpass yes | |
| ProxyCommand python3 -c 'import socket,sys,struct; s=socket.create_connection((sys.argv[1],int(sys.argv[2]))); socket.fromfd(1,socket.AF_UNIX,socket.SOCK_STREAM).sendmsg([b"\0"],[(socket.SOL_SOCKET,socket.SCM_RIGHTS,struct.pack("i",s.fileno()))])' %h %p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment