ssh-copy-id no identities found error

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

    You need to use the -i flag:

    ssh-copy-id -i my.key.pub 10.10.1.1
    

    From the man page:

    If the -i option is given then the identity file (defaults to ~/.ssh/id_rsa.pub) is used, regardless of whether there are any keys in your ssh-agent. Otherwise, if this: ssh-add -L provides any output, it uses that in preference to the identity file

提交回复
热议问题