ssh-copy-id no identities found error

后端 未结 13 1150
情深已故
情深已故 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:53

    FWIW, the -i option was a red herring for me. ssh-copy-id will use ~/.ssh/id_rsa.pub by default.

    What was keeping it from working for me was the permissions on the ~ directory, the ~/.ssh directory, and the ~/.ssh/authorized_keys file on the remote computer.

    All three need to be set with chmod 755 ~ ~/.ssh ~/.ssh/authorized_keys, then ssh-copy-id your-remote-server.com will work.

    0 讨论(0)
提交回复
热议问题