我是ansible的新手。尝试在 amazon linux 实例中配置它以了解有关 ansible 的基本知识。ansible 安装后,我使用命令 ssh-keygen 创建了一个 ssh 密钥对。生成后,我尝试运行命令“ ssh-copy-id localhost”,但以以下错误结束,
/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
Permission denied (publickey).
有人可以指导我解决这个问题。