Topic "$sessionOptions.SshHostKeyFingerprint Question.."

Author Message
jsb2210
[View user's profile]

Joined: 2013-06-13
Posts: 10
Hi -

If, a SSH key pair (public and private), was created on one server, then transferred the private key to a new server, would the connection still work in .NET Assembly? Both keys still work in the WinSCP Console in the new server.

1 year ago: Public and Private Keys created on SERVER1 (Server1 is winscp 4.29).

Now: Transferred Powershell scripts to SERVER2. (Server2 is winscp 5.5).

Issue: Same PPK keys are not connecting using .Net Assembly code. The keys do work using the Winscp Gui still on SERVER2.


thanks in advance...
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
SessionOptions.SshHostKeyFingerprint has nothing to do with .ppk files. You are mixing server's host key with your account key. From your post I have no idea which one you are talking about.

See following links to learn the difference.
https://winscp.net/eng/docs/public_key
https://winscp.net/eng/docs/ssh#verifying_the_host_key
jsb2210
[View user's profile]

Joined: 2013-06-13
Posts: 10
Thank you Martin, will do.
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