Topic "FileZilla and WinSCP - SFTP with no password but server-private-key-rsa.ppk?"

Author Message
George A.

Guest


Hi.
I tried to connect to server with sftp using FileZilla client and it let me input host, user name, and key file, also asked me accept any key. No password required. And connection was successful.

WinSCP ask for user name, password(?), key fingerprint(?), key file.

Is there a way to configure WinSCP to work like FileZilla?

I tried also setting up GiveUpSecurityAndAcceptAnySshHostKey = true, and getting key fingerprint with Session.ScanFingerprint(sessionOptions) function.

Nothing worked.

thank you.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25946
Location: Prague, Czechia
You confuse server and account/client keys.
Read https://winscp.net/eng/docs/ssh_keys

You probably missed to set the SshPrivateKeyPath:
https://winscp.net/eng/docs/library_sessionoptions#sshprivatekeypath

Do not use GiveUpSecurityAndAcceptAnySshHostKey.
See https://winscp.net/eng/docs/faq_hostkey
Guest




martin wrote:
You confuse server and account/client keys.
Read https://winscp.net/eng/docs/ssh_keys


It seems I have SSH Host Public Key.

martin wrote:

You probably missed to set the SshPrivateKeyPath:
https://winscp.net/eng/docs/library_sessionoptions#sshprivatekeypath


So, the component does not work with SSH Host Public Key?

martin wrote:

Do not use GiveUpSecurityAndAcceptAnySshHostKey.
See https://winscp.net/eng/docs/faq_hostkey


It is for testing only.

thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25946
Location: Prague, Czechia
You still do not understand it. Please read the article again.
You must have a private key to authenticate. It's probably, what you are referring to by "key file". Point the SshPrivateKeyPath to the file.
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