Skip to content

Host key verification failed for 'Transferring file from remote host with rsync to local host without rsync:' #16

Open
@KuroAshi75

Description

We have two ubuntu host systems[ssh client and ssh server] with docker container running on the client. our aim is to transfer the file from server host to client host using the docker container[instrumentisto /rsync-ssh ]running on the client.
We have generated the public and private key on the client[id_rsa,id_rsa.pub] and added the public key in the authorized_keys file on the server. we have tried the following command and we're getting the "Host key verification failed" error.

sudo docker run --rm -i -v /home/testuser1/.ssh/:/ssh-key/ -v /home/testuser1/client_rsync/:/mnt/ instrumentisto/rsync-ssh rsync -auvz -e "ssh -i /ssh-key/id_rsa" testuser1@[ip address of server]:/home/testuser1/server_rsync/ /mnt/

Note: we have verified the keys by ssh login from the client to server and it logs in without password

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions