Skip to content

SSH agent forwarding not passing the key to remote #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JackOneil opened this issue Apr 8, 2021 · 8 comments
Open

SSH agent forwarding not passing the key to remote #77

JackOneil opened this issue Apr 8, 2021 · 8 comments
Assignees
Labels
feature New feature

Comments

@JackOneil
Copy link

JackOneil commented Apr 8, 2021

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.

@kingToolbox
Copy link
Owner

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;

@JackOneil
Copy link
Author

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.

@kingToolbox
Copy link
Owner

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 kingToolbox self-assigned this Apr 9, 2021
@kingToolbox kingToolbox added the feature New feature label Apr 9, 2021
@harisahai
Copy link

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

@JackOneil
Copy link
Author

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 )

@SadarSSI
Copy link

SadarSSI commented Mar 3, 2022

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

@imjakey
Copy link

imjakey commented Jul 22, 2022

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

@dev72
Copy link

dev72 commented Sep 30, 2024

Hello,
I'm trying to use agent forwarding on linux with openssh but it does not work.
Is there a way to use agent forwarding?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

6 participants