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

Simon@Emerson

Re: Public Keys - How are they assigned to connections

Martin, I regenerated the key pair properly this time - public and private.
The connection now works fine.

Thank you :D
martin

Re: Public Keys - How are they assigned to connections

First, you do not authenticate with public key, but with private key.

You specify the private key on Authentication page of Advanced site settings dialog:
https://winscp.net/eng/docs/ui_login_authentication

Though the "timeout" error can actually indicate a completely different problem. If the above does not help, please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session 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.
Simon@Emerson

Public Keys - How are they assigned to connections

I have used WinSCP SFTP with user names / password previously successfully.

I now have a requirement to connect to another SFTP site which uses public keys. I generated such a key on my client using PuTTYgen (RSA/2048) with no passphrase and sent this to the SFTP Server team who loaded it in and gave me back a username/password. The public key file is stored on my desktop.

I put in the IP address of the SFTP Server and the provided username/password but the connection fails (times out). I have instructions from the SFTP Server team but they are based on IPSwitch SFTP client software. In that product you can reference the public key file to use in the connection. I cannot see the ability to do this with WinSCP.

So can you please advise how this is done with WinSCP? Do I explicitly attach the public key file or does it have be stored in a certain place or loaded into the system as you do with certificates?

I am using WinSCP version 5.9.4.

Thanks