/bin/ssh-copy-id: ERROR: failed to open ID file...

General support questions
Post Reply
WunHunn
Posts: 1
Joined: 2020/05/31 01:51:28

/bin/ssh-copy-id: ERROR: failed to open ID file...

Post by WunHunn » 2020/05/31 20:34:05

Trying to make it so I can ssh into a guest vm without having to enter a password.

I generated the key-pair on my host machine

I entered

ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.xx.xx

I then get the error: /bin/ssh-copy-id: ERROR: failed to open ID file '/root/.ssh_rsa.pub': No such file or directory


Any help?

mayankdhw2020
Posts: 12
Joined: 2020/05/27 09:44:12

Re: /bin/ssh-copy-id: ERROR: failed to open ID file...

Post by mayankdhw2020 » 2020/06/04 17:19:33

Generate ssh key by 'ssh-keygen' first and then execute this command to copy the ssh key to other host.

Post Reply