Topic "$sessionOptions.SshHostKeyFingerprint Question.."

Author Message
[View user's profile]

Joined: 2013-06-13
Posts: 11
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...
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27059
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.
[View user's profile]

Joined: 2013-06-13
Posts: 11
Thank you Martin, will do.

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License