Permission denied (publickey) error when using ssh-copy-id to copy public key to remote server

问题描述 投票:0回答:0

我正在尝试使用 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 密钥对文件具有必要的权限

什么可能导致此错误,我该如何解决?

ssh rsa ssh-keys ubuntu-server
© www.soinside.com 2019 - 2024. All rights reserved.