ssh-copy-id no identities found error

后端 未结 13 1155
情深已故
情深已故 2021-01-31 01:21

I have few client systems where I need to push the ssh key and login from my server without authentication prompts.

First, on the server, I created ssh key as below whi

13条回答
  •  执笔经年
    2021-01-31 01:36

    The ssh-copy-id is not able to locate the id_rsa.pub file that is generated by ssh-keygen in your system, Use the following command to complete:

    1. find the path of the .pub file: locate *.pub
    2. copy the path (ex: /home/user_name/.ssh/id_rsa.pub) and run the following command: ssh-copy-id -i /home/user_name/.ssh/id_rsa.pub hostname

提交回复
热议问题