Topic "WinSCP v 5.7 - keeps asking for passphrase"

Author Message
ausername

Guest


Hello,

I've been using WinSCP 5.52 portable for some time and I decided to jump to 5.7 portable. I copied my 5.52 .ini file and everything looks to be in order. But when I try to login to a saved session which is using a private key, it keeps asking me for passphrase. I triple-checked 5.52 vs 5.7 settings, they are identical.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Can you attach a log file from both versions?

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
_________________
Martin Prikryl
ausername

Guest


Hi,

I attached the two logs (Debug2). From what I see:

WinSCP 5.52
. 2015-03-25 06:16:41.558 Using remembered password.

WinSCP 5.70
. 2015-03-25 06:23:45.293 Prompt (passphrase, "SSH key passphrase", <no instructions>, "Passphrase for key "[edited]": ")

But the settings for the site are identical. I even deleted it and recreated, still I receive a password prompt.
winscp570.txt (8.51 KB) [Download]

Description: (none)

winscp552.txt (8.38 KB) [Download]

Description: (none)

ausername

Guest


Hello,

Were you able to reproduce and identify the root cause of this issue?

Thank you.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Sorry, I've missed your previous post.
Actually the fact that stored PASSWORD was used as PASSPHRASE in 5.5.2 was a bug. It was a side effect of a bug introduced in 5.5 and fixed in 5.5.4:
https://winscp.net/tracker/show_bug.cgi?id=1176
ausername

Guest


Hi,

Thanks for the reply. So it is actually not possible to auto login with private key and stored passphrase.

I will remain at 5.52
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
It does not make sense to protect a key with a passphrase and then save the passphrase along with the key.

You should use Pageant:
https://winscp.net/eng/docs/ui_pageant
ausername

Guest


Thank you for your reply.

Normally it doesn't make sense unless I want to prevent the key file from being used if it is somehow retrieved and at the same time not having to enter the passphrase each time I need to login with it.

I did not want to use pageant because it is another software I need to run specifically for storing the passphrase and I liked the simplicity of just letting WinSCP do this for me.

I will either keep using WinSCP 5.52 or use 5.7 and remove the passphrase from the private key.

Best regards!
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