How to get the Host key

Advertisement

abirax
Joined:
Posts:
3
Location:
Kuala Lumpur

How to get the Host key

Hi,
I am new to sftp and its concepts. I want to know how can i get the value of host key of a sftp server to which I am connecting using Winscp in the two formats


AAAAB3NzaC1kc3MAAACBAN/ZdhwrPQdOjPB4gDfDfOgJtoKSnrEB78MteKyI1m+M8p5BWBOumIKeDM7yg8Tu88+b1o9zaS2Duk5yDek4oDUDHCqI/rUthBQylSp/iYEHi9fmvhvd/kJ4tgqOozEEoeRsXlwD3Uoo6oJf+DnpdyrYCvHlAy2axYdstHLgBp5LAAAAFQD3BqZLCFDt5CR5IzsY3H4Nk5rTmwAAAIEAqdVgRya76u9yPHkny6UCfIcY5NiCy3vB18UZ/3Zuo9wOxvWMcXOn8qBr5KuCQnIHL/Jbu+8OYPMP5ii3f6nVWoZazeQNmHgXl1ljF3eV8SEy16l/6h/ImFLW4Lq+Knq9aVyNC4d+3r8P06IPftb3imsvY4lc0eF6SO+UDO206qQAAACBAMuwVy8JMrfUPabsyNsz//TvOFOtvyxlXBUxQImz3WbkK4PGt2YJyYUYZkkvul4l+9Y0QlA8BMFx4PTZnf3p/iz1zSyz+Tsk7XbYWod7m6KeZnNVtTFBh78xuuXO+7HV6HK+lWRTB+SzfjXxIkG6MsD3nnt/vOSLdnq3aTH5pR7s


and

d5:df:7c:78:b3:37:e2:48:87:d2:5a:dd:73:d7:60:72.

I read in the documentation that it is stored in the .ini file or the registry but i couldnot find it can any one help me to get the host key in both these formats

Kind regards
Abir

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,638
Location:
Prague, Czechia

Re: How to get the Host key

I'm not sure what your first format is, but check:
[HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\SshHostKeys]

The second format is fingerprint. It can be found on Server and protocol information dialog.
_________________
Martin Prikryl

Reply with quote

abirax
Joined:
Posts:
3
Location:
Kuala Lumpur

Hi,
I checked in both the registry(I didnt have the key/ even after creating teh key no values) as well as in command /protocol couldnt find any host key. I am using version 4.1.7.
Any suggestions why this is happening?
Thanks in advance
Abir

Reply with quote

abirax
Joined:
Posts:
3
Location:
Kuala Lumpur

Sorry to write again. I did get the host keys when I did a fresh installation of the new version. Somehow I dont get it my old machine though i upgraded the version.
Thanks
Abir

Reply with quote

Advertisement

You can post new topics in this forum