“ssh-copy-id user@ip_address”抛出错误

“ssh-copy-id user@ip_address”抛出错误

在 UBUNTU 系统中,我尝试设置远程登录系统。它在 ssh-copy-id 步骤中失败。它抛出以下错误:

/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: ERROR: ssh: connect to host XXX.XXX.XX.XXX port 22: Connection refused

尝试 ssh XXX.XXX.XX.XXX 得到-

The authenticity of host 'XXX.XXX.XX.XXX (XXX.XXX.XX.XXX)' can't be established.
ED25519 key fingerprint is SHA256:*********.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? ssh [email protected]
Please type 'yes', 'no' or the fingerprint: 

我能做什么?提前致谢。NB:我按照不同的教程尝试了几次这些步骤,每次都重新开始,我只是删除了 /.ssh 文件夹下的文件。

相关内容