I have Linux server running sshd
.
How to provide hostkey
from the Linux server to plink.exe
on Windows?
e.g.: for running plink.exe -ssh -batch -m plink.tmp -hostkey ...
plinkputtyssh
I have Linux server running sshd
.
How to provide hostkey
from the Linux server to plink.exe
on Windows?
e.g.: for running plink.exe -ssh -batch -m plink.tmp -hostkey ...
Best Answer
You can use plink itself to get the host key:
The parameter
-v
(verbose) is needed for the additional information,-batch
makes sure plink exits directly without a login (as long as username and password are not provided as well).In the output you find
Host key fingerprint is:
, followed by the fingerprint in a hexadecimal format, in this case:This is the string you have to provide to
plink -hostkey
to confirm that the target host is actually the host it claims to be.