Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 11:25 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Nov 22, 2016 7:57 am 
Offline

Joined: Tue Nov 22, 2016 7:36 am
Posts: 3
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!


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Mon Nov 28, 2016 3:11 am 
Offline

Joined: Tue Nov 22, 2016 7:36 am
Posts: 3
chmmeng wrote:
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!


Attachments:
yubico配置使用手册0.1.docx [201.29 KiB]
Downloaded 89 times
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group