SSH forwarding (SSH_AUTH_SOCK) on Windows

Does anyone use SSH forwarding on Windows?

It says it should set up SSH_AUTH_SOCK env var. But this variable is empty.

If I run start-ssh-agent command it shows:

Found ssh-agent at 3356
Found ssh-agent socket at /tmp/ssh-z8A7Sq092g3X/agent.10484
Identity added: /c/Users/user/.ssh/id_rsa (/c/Users/user/.ssh/id_rsa)

%SSH_AUTH_SOCK% is available in this shell, but is not available in other shells.

I'm trying to forward SSH to a Docker container.

Does forwarding work for you even to some servers?


%SSH_AUTH_SOCK% is available in this shell, but is not available in other shells.

Environment variables are per-shell, therefore it is not available in the other shells, unless you start them from the first one. This is feature.

I'm trying to forward SSH to a Docker container.

To forward ssh-agent authentication socket, you need to use -A switch to ssh or ForwardAgent option in ssh_config.

Does forwarding work for you even to some servers?

Yes, it does!