Skip to content

Instantly share code, notes, and snippets.

@ormaaj
Created February 3, 2026 12:00
Show Gist options
  • Select an option

  • Save ormaaj/c1b8758f361aaad435929d566a9c6577 to your computer and use it in GitHub Desktop.

Select an option

Save ormaaj/c1b8758f361aaad435929d566a9c6577 to your computer and use it in GitHub Desktop.
openssh ProxyCommand for ProxyUseFdpass SCM_RIGHTS IPC
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