I am trying to download a directory from my cloud server to my local, using
scp, with the following:
scp -i ./.ssh/mykey.pem -r -p email@example.com:/var/lib/mongodb 127.0.0.1:/var/lib/mongod
admin is of course the remote, for which I need to key, while 127.0.0.1 is the local.
I receive however the error message:
Host key verification failed. lost connection
If I try to connect through ssh to my server using
ssh -i ./.ssh/mykey.pem firstname.lastname@example.org it does work.
Could anyone point me to what I am doing wrong?