Topic "Public Keys - How are they assigned to connections"

Author Message
Simon@Emerson
[View user's profile]

Joined: 2017-03-29
Posts: 2
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
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
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
[View user's profile]

Joined: 2017-03-29
Posts: 2
Martin, I regenerated the key pair properly this time - public and private.
The connection now works fine.

Thank you Very Happy
Advertisements

You can post new topics in this forum

Search

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