caidongyun / futty

Automatically exported from code.google.com/p/futty
Other
0 stars 1 forks source link

FuTTY not able to log in via PAGEANT keys. #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run official PAGEANT 0.60 client.
2. Load private keys.
3. Attempt to log into a site using key authentication first using:
   - PuTTY Tray: SUCCESS - Logs in using key w/o prompting for password as expected.

   - FuTTY: FAILED - presented with password prompt).

What is the expected output?
From official PuTTY Tray session}-------------------------------------
...
2011-04-11 13:03:27 Pageant is running. Requesting keys.
2011-04-11 13:03:27 Pageant has 2 SSH-2 keys
2011-04-11 13:03:27 Trying Pageant key #0
2011-04-11 13:03:27 Sending Pageant's response
2011-04-11 13:03:27 Access granted
2011-04-11 13:03:27 Opened channel for session
...
----------------------------------------------------------------------

What do you see instead?
From FuTTY 2011-02-24 build}------------------------------------------
...
2011-04-11 13:02:20 Pageant is running. Requesting keys.
2011-04-11 13:02:26 Access granted
2011-04-11 13:02:26 Opened channel for session
...
----------------------------------------------------------------------

What version of the product are you using? On what operating system?
FuTTY 2011-02-24:r41 running on Win7SP1.

Please provide any additional information below.

Original issue reported on code.google.com by jmtyso...@gmail.com on 11 Apr 2011 at 5:13

GoogleCodeExporter commented 8 years ago
Everything you said is correct.  I just tested it..  It fails with FuTTY, and 
works with PuTTYTray.   BUT, this bug also applies to the official PuTTY 
development snapshot.. So you should file the bug report with them so they can 
fix it.

Original comment by FireEgl on 12 Apr 2011 at 5:06

GoogleCodeExporter commented 8 years ago
Yeah, it looks like the PAGEANT key authentication regression was introduced 
between the FuTTY 2010-12-20 build (works) and FuTTY 2011-02-12 (failed).

I will see about reporting the issue on the official site.

Original comment by jmtyso...@gmail.com on 12 Apr 2011 at 1:11

GoogleCodeExporter commented 8 years ago
FYI, I've been trying the daily drops of the official PuTTY and today's 
snapshot, SSH-2.0-PuTTY_Snapshot_2011_04_21:r9149, fixes this issue.

Original comment by jmtyso...@gmail.com on 21 Apr 2011 at 2:11

GoogleCodeExporter commented 8 years ago
Well, I updated FuTTY to PuTTY 04-22 (r9149) just now..  but it still doesn't 
work for me.  Neither the new PuTTY or FuTTY works with pageant for me..  So 
recheck yours to make sure it's really fixed please.

Original comment by FireEgl on 22 Apr 2011 at 3:54

GoogleCodeExporter commented 8 years ago
Okay, so here's the deal. After you said the 2011-04-21:r9149 build of PuTTY 
didn't work for you I loaded the keys into PAGEANT and retried it again; and it 
worked, on my WinXPSP3 Home Edition netbook.

I then tried both you last two FuTTY (2011-04-22:r45 & 2011-02-24:r41) releases 
on the WinXP_SP3 netbook and they too where able to authenticated via PAGEANT 
keys. 

So then I tried the last two FuTTY releases and PuTTY (2011-04-21:r9149) on my 
Win7SP1 desktop, FAIL! None of them could authenticate via PAGEANT keys.

So, something is amiss with PAGEANT key authentication on Win7 (don't have 
access to a Vista OS to try).

Original comment by jmtyso...@gmail.com on 22 Apr 2011 at 4:20

GoogleCodeExporter commented 8 years ago
This problem was introduced in Putty revision 9043:

http://svn.tartarus.org/sgt?view=rev&revision=9043

I just bisected the problem with Git... I can reproduce it on Windows 7 Pro 
64bit, compiling on Cygwin 1.7.5. Revisions earlier than 9043 are all OK.

Original comment by toni.a...@iki.fi on 25 May 2011 at 5:23

GoogleCodeExporter commented 8 years ago
Good work finding it!  But I'm going to wait for the fix from upstream rather 
than just revert those changes..  I'll revert it in a few months though, if 
they never fix it.

Original comment by FireEgl on 25 May 2011 at 3:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Yes, great work finding the problem in the code. I see the WinSCP project also 
encountered this issue (http://winscp.net/tracker/show_bug.cgi?id=662).

Original comment by jmtyso...@gmail.com on 29 May 2011 at 10:45

GoogleCodeExporter commented 8 years ago
According to yesterdays changelogs in PuTTY, they fixed the Pageant issues.
I've updated FuTTY with the latest PuTTY changes..  FuTTY-2011-06-10.exe

Original comment by FireEgl on 10 Jun 2011 at 8:27

GoogleCodeExporter commented 8 years ago
Verified the fix on Win7SP1-64bit. Note however that you must use the current 
beta build (v0.60.9178) of PAGEANT.exe; the official 0.60 release version of 
PAGEANT.exe doesn't work with the fixed Futty/PuTTY (v0.60.9178).

Original comment by jmtyso...@gmail.com on 11 Jun 2011 at 12:02