I want to login to the linux server from windows by putty!
SSH Server: centos 6.5
SSH client: win10+putty+yubikey+GPG4win
It's seem to the putty can't access the gpg-agent.
C:\Program Files (x86)\GNU\GnuPG>ssh-add -l
Could not open a connection to your authentication agent.
The details as below:
C:\Program Files (x86)\GNU\GnuPG>gpg-agent --enable-ssh-support --enable-putty-support --daemon --debug-level expert /bye
gpg-agent[27380]: enabled debug flags: command cache assuan
gpg-agent[27380]: listening on socket `C:\Users\Administrator\AppData\Roaming\gnupg\S.gpg-agent'
gpg-agent[27380]: listening on socket `C:\Users\Administrator\AppData\Roaming\gnupg\S.gpg-agent.ssh'
set GPG_AGENT_INFO=C:\Users\Administrator\AppData\Roaming\gnupg\S.gpg-agent;27380;1
gpg-agent[27380]: gpg-agent (GnuPG) 2.0.29 started
gpg-agent[27380]: DBG: returning notify handle 00000210
gpg-agent[27380]: putty message loop thread 0x189c started
gpg-agent[27380]: handler 0x291c for fd 600 started
....
pg-agent[27380]: socket is still served by this server
gpg-agent[27380]: chan_0x00000260 -> BYE
gpg-agent[27380]: chan_0x00000258 <- BYE
gpg-agent[27380]: chan_0x00000258 -> OK closing connection
gpg-agent[27380]: handler 0x291c for fd 600 terminated
gpg-agent[27380]: handler 0x2b6c for fd 596 started
gpg-agent[27380]: chan_0x00000254 -> OK Pleased to meet you
gpg-agent[27380]: chan_0x00000254 <- RESET
gpg-agent[27380]: chan_0x00000254 -> OK
gpg-agent[27380]: chan_0x00000254 <- [error: Input/output error]
gpg-agent[27380]: Assuan processing failed: Input/output error
gpg-agent[27380]: handler 0x2b6c for fd 596 terminated
gpg-agent[27380]: handler 0x694c for fd 584 started
C:\Program Files (x86)\GNU\GnuPG>set GPG_AGENT_INFO=C:\Users\Administrator\AppData\Roaming\gnupg\S.gpg-agent;27380;1
C:\Program Files (x86)\GNU\GnuPG>set SSH_AUTH_SOCK=C:\Users\Administrator\AppData\Roaming\gnupg\S.gpg-agent.ssh
C:\Program Files (x86)\GNU\GnuPG>set SSH_AGENT_PID=27380
C:\Program Files (x86)\GNU\GnuPG>gpg-connect-agent -v /bye
gpg-connect-agent: connection to agent established
gpg-connect-agent: closing connection to agent
C:\Program Files (x86)\GNU\GnuPG>ssh-add -l
Could not open a connection to your authentication agent.
when I logon with putty.("attemp authentication using pageant" checked)
Get errors:
Disconnected: NO supported authentication methods available(server sent: publikey,gssapi-keyex,gssapi-with-mic)
what's the reason for that! Any help, greatly appreciated!Thanks!
Solution:
It's no need to gpg-agent.Download a pageant from here
http://smartcard-auth.de/ssh-en.html and It's OK!