scp Host key verification failed
Hello everyone, I am trying to address the following problem (noob level).
I want to send a compressed directory from my server to another server by using scp.
I have created my public/private keys through the security service (ssh access), I have made the public key authorized, then I have copied the public key to the destination server.
However, when I run my bash script where I have the command:
scp mydir.tar me@scp.destserver.com:destdit/
I come up with this error:
Host key verification failed.
lost connection
Any suggestion?
Thank you in advance.
-
scp mydir.tar me@scp.destserver.com[/EMAIL]:destdit/
Hello, Try using the "i" flag with SCP to define the path to your key file: scp'ing using key file as a parameter, How can I do that if possible? Thank you.0
Please sign in to leave a comment.
Comments
1 comment