ssh-copy-id no identities found error

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

    In my case it was the missing .pub extension of a key. I pasted it from clipboard and saved as mykey. The following command returned described error:

    ssh-copy-id -i mykey localhost
    

    After renaming it with mv mykey mykey.pub, works correctly.

    ssh-copy-id -i mykey.pub localhost
    

提交回复
热议问题