Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

ausername

Re: WinSCP v 5.7 - keeps asking for passphrase

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!
martin

Re: WinSCP v 5.7 - keeps asking for passphrase

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

Re: WinSCP v 5.7 - keeps asking for passphrase

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

Re: WinSCP v 5.7 - keeps asking for passphrase

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/1176
ausername

Re: WinSCP v 5.7 - keeps asking for passphrase

Hello,

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

Thank you.
ausername

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.
martin

Re: WinSCP v 5.7 - keeps asking for passphrase

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.
ausername

WinSCP v 5.7 - keeps asking for passphrase

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.