While connecting to a SFTP
server on Windows using WinSCP
, I need to pass hostkey fingerprint through the -hostkey
switch.
Is a similar option available in sftp
command in Linux?
While connecting to a SFTP
server on Windows using WinSCP
, I need to pass hostkey fingerprint through the -hostkey
switch.
Is a similar option available in sftp
command in Linux?
you should definitely read the man
page :
https://www.freebsd.org/cgi/man.cgi?query=sftp&sektion=1
I think the -o
option is what you need, this will allow you to send options to the sublayer SSH agent in the sftp transaction.
No. In SFTP there is no way to pass the fingerprint. Once the server will present you the fingerprint, you are asked to verify that.
There is no way to pass the fingerprint in this way, not even using -o
option, but you can manually store the whole public key to the ~/.ssh/known_hosts
.
sftp
from OpenSSH. – Jakuje Jan 27 '17 at 09:50validate the answer
feature. I am not really ansftp
expert, in fact i never used it but based on my experience I always find a solution reading the manuals. That is why I told him/her to read it in case he didn't know that feature in Linux OSes. You know just trying to help people out is a good thing. – vdegenne Jan 27 '17 at 14:32