WindTerm icon indicating copy to clipboard operation
WindTerm copied to clipboard

SSH agent forwarding not passing the key to remote

Open JackOneil opened this issue 3 years ago • 8 comments

Hi, I was testing WindTerm for windows and have tried the SSH agent forwarding with pageant. I put the private key to pageant, connect to remote machine and it successfully authenticate me. Next im not sure whether i did something wrong, its a bug or this featture is not implemented yet, the key is not forwarded to the machine i have connected to.

echo "$SSH_AUTH_SOCK" is blank

in putty or other terminal client:

echo "$SSH_AUTH_SOCK"
/tmp/ssh-jmhFpdffir/agent.231074

Thanks for any help and keep up the great work.

JackOneil avatar Apr 08 '21 11:04 JackOneil

SSH_AUTH_SOCK is used by the ssh-agent of OpenSSH, I am not quite sure if pageant would associate it as well. But I test echo "$SSH_AUTH_SOCK" with putty and pageant in my system, it also output a blank line. So I thought maybe this is correct.

In addition, running ssh-agent does output what you describe:

SSH_AUTH_SOCK=/tmp/ssh-Xnv01Q0kGoJC/agent.2653; export SSH_AUTH_SOCK; SSH_AGENT_PID=2654; export SSH_AGENT_PID; echo Agent pid 2654;

kingToolbox avatar Apr 08 '21 23:04 kingToolbox

Thanks for the response. In the Putty client the setting for agent forwarding can be achieved by checking this: image

This should be the equivalent of ssh -A [email protected] when using ssh command to connect to remote host. -A is for enabling agent forwarding.

JackOneil avatar Apr 09 '21 12:04 JackOneil

Thank you very much. This is my fault, because I have never used this feature, so this feature was ignored by me. Yes, Agent forwarding has not been implemented yet. And I will implement it in the version 2.2.0. This version is expected to be released in May.

I will update the progress here in time. Please keep follow and thanks.

kingToolbox avatar Apr 09 '21 14:04 kingToolbox

Hi, On 2.3.0 prerelease 4, pagent authentication works but once connected to the server, forwarding the key to the next server does not work for me. My config file seems ok (this configuration works with Putty + Allow agent forwarding option)

$ cat .ssh/config ForwardAgent yes

harisahai avatar Feb 14 '22 09:02 harisahai

Hi, On 2.3.0 prerelease 4, pagent authentication works but once connected to the server, forwarding the key to the next server does not work for me. My config file seems ok (this configuration works with Putty + Allow agent forwarding option)

$ cat .ssh/config ForwardAgent yes

Hi, this featture has been postponed to some later version as on the main page notes for 2.3 version:

  • SSH Agent Forwaring (Postponed to a later version )

JackOneil avatar Feb 14 '22 11:02 JackOneil

Hi, same problem for me I'm waiting for the next version

SadarSSI avatar Mar 03 '22 07:03 SadarSSI

One year has passed, is there any plan for this feature ?

imjakey avatar Jul 22 '22 08:07 imjakey