我正在尝试使用 ssh-copy-id 命令将我的公钥复制到远程服务器,但我收到“权限被拒绝(公钥)”错误。这是命令的输出:
$ ssh-copy-id [email protected]
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/c/Users/tckip/.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
[email protected]: Permission denied (publickey).
我有公钥在这个位置
C:\Users\tckip\.ssh
在我的本地机器上,我为远程服务器使用了正确的用户名和 IP 地址。 rsa 密钥对文件具有必要的权限
什么可能导致此错误,我该如何解决?