Permission denied (publickey)
在 ec2 ubuntu 实例上使用此命令复制公钥时出现错误
root@ip-172-31-5-68:~# ssh-copy-id docadmin@ip-172-31-13-212
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed:"/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
docadmin@ip-172-31-13-212: Permission denied (publickey).
谁能帮助我为什么会收到此权限问题?