Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
x/crypto/ssh: does not support ssh-agent forwarding #6223
crypto/ssh does not have support for ssh-agent forwarding. This is useful for building out things like deployment systems where you're tunneling through some bastion server into production. The packer project could benefit from this (in fact, that's why we @ dropbox tackled this issue).
this should be fixed in go.crypto/ssh . Can you update and try again? update notes are at https://docs.google.com/document/d/1nF2wlkIwuA4AXryOvE2p0hgQUbsyRYklKSot4ahH3Aw/edit#heading=h.ptdmtgjuyu8
agent forwarding is described here:
basically, you do channel.SendRequest("auth-agent-req", true) before starting the session, and then route incoming NewChannel requests of type "auth-agent" to a connection to the SSH_AUTH_SOCK unix domain socket.
Most of the legwork has been done here for you: