我正在尝试将我的ssh密钥添加到另一台远程服务器,如下所示:

sudo ssh-copy-id -i ~/.ssh/ppshein ubuntu@0.0.0.1

不幸的是,之后我遇到了以下错误消息,

ubuntu@ip-0-0-02:~$ sudo ssh-copy-id -i ~/.ssh/id_rsa.pub ubuntu@0.0.0.1
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/ubuntu/.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
ubuntu@ip-0-0-02: Permission denied (publickey).

请让我知道如何解决它 . 非常感谢 .