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?
/bin/ssh-copy-id: ERROR: failed to open ID file...
-
- Posts: 12
- Joined: 2020/05/27 09:44:12
Re: /bin/ssh-copy-id: ERROR: failed to open ID file...
Generate ssh key by 'ssh-keygen' first and then execute this command to copy the ssh key to other host.