Post a reply

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

johnbeo

How to retrieve ssh Host key fingerprint without making a connection in WINSCP

Hi,
I am having the following issue. I have a set of servers where OpenSSH is installed and I need to push a file to all of these servers. As you can imagine using WinSCP GUI to do such task is not very effective, so I want to push this file using .NET library and PowerShell.
The issue I am facing is that for each of the connection SSH Host Key fingerprint is needed. As far as I know, this fingerprint can only be obtained when you actually connect to remote servers via WinSCP, please help me to confirm the following:

  1. Is there a way to obtain this key host fingerprint in PowerShell without being connected to remote server?
  2. If I am connected via RDP to remote server where OpenSSH is installed. Is there a way to obtain this SSH key host fingerprint directly from this server?

I am sorry if my question is stupid, I am very new to this topic.
Thank you.
BR, Tomas