Topic "Export setting "Attempt authentication using Pageant" to temporary Putty session configuration"

Author Message
harkman
[View user's profile]

Joined: 2012-03-14
Posts: 12
Location: Germany
Hello.

I would like to request a small feature to remove a problem, that bothers me quite a lot.

I use sites that authenticate by public key auth and others by login/password.
I use the putty/kitty integration a lot.
I use Pageant (KeeAgent) for private Key management.

Now the problem that arises is, if you enable the "Attempt authentication using Pageant" by default (what is the current default setting in WinSCP) you get login problems on sites that require password authentication.
On those sites WinSCP will first try public key auth and WinSCP and Putty will try to auth with ALL keys available in pageant.
On most sites login will permanently fail when 3 public keys fail. Password authentication will never kick in, because the server will cancel the connection after 3 failed authentications by public key auth.
Now I can remove the "Attempt authentication using Pageant" in WinSCP and the problem disappears in WinScp, but I still get this error in Putty.
I now can change the "Attempt authentication using Pageant" setting in the Putty default session and re-enable login on sites with password auth, but now I cannot login into my sites that require public key auth any more.

As far as I know, there is no workaround for this. One way to solve this is to properly store this setting in the registry key for putty before launching Putty.

I'd be very thankful if you could fix this issue.

Thanks for this awesome program WinSCP is. Love it alot Smile
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
But WinSCP does store the setting to PuTTY registry key:

Code:
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\WinSCP%20temporary%20session]
...
"TryAgent"=dword:00000000
...
harkman
[View user's profile]

Joined: 2012-03-14
Posts: 12
Location: Germany
Yes, I missed to state that I use a Terminal client command pattern, what seems to disable the WinSCP temporary session configuration in the registry.

Putty/Kitty in this case fall back to their "Default Settings" Registry Keys, and the values there do not match the settings of my current site in WinSCP.

I tried to use the -load "WinSCP temporary session" option in my Terminal client command what made kitty load the WinSCP temporary session, but unfortunately WinSCP will not update these settings if commandline options were set.

I see two options here:
1) Store session options in Putty Default Settings registry if commandline Options are used. This would even work if the -load option is not configured.
2) Store session options always in WinSCP temporary session regardless if commandline options are used or not. This will only work as long the additional -load option is set. You might consider to call this option in background if commandline options are set.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
What command-line pattern do you use and why?
harkman
[View user's profile]

Joined: 2012-03-14
Posts: 12
Location: Germany
Sorry for my late reply - I did overlook your reply-notification in my inbox.

I use the commandline for convenience, to change my working directory to the current folder open in WinSCP:

kitty.exe -cmd "cd ""!/""" !U@!@

Regards, Jürgen
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
In that case it simply helps if WinSCP inserts the -load argument before the custom arguments (-cmd).

https://winscp.net/tracker/show_bug.cgi?id=1351

I'm sending you a dev build for testing.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License