我已OpenSSH
在 中配置了服务器。并在文件目录Windows
中添加了公钥。当我使用 从 Linux 机器连接时,它会抛出以下错误。authorized_keys
<<Users>>\.ssh
SSH
有什么想法吗?我是否缺少任何配置?
****USAGE WARNING****
This is a private computer system. This computer system, including all
related equipment, networks, and network devices (specifically including
Internet access) are provided only for authorized use. This computer system
may be monitored for all lawful purposes, including to ensure that its use
is authorized, for management of the system, to facilitate protection against
unauthorized access, and to verify security procedures, survivability, and
operational security. Monitoring includes active attacks by authorized entities
to test or verify the security of this system. During monitoring, information
may be examined, recorded, copied and used for authorized purposes. All
information, including personal information, placed or sent over this system
may be monitored.
Use of this computer system, authorized or unauthorized, constitutes consent
to monitoring of this system. Unauthorized use may subject you to criminal
prosecution. Evidence of unauthorized use collected during monitoring may be
used for administrative, criminal, or other adverse action. Use of this system
constitutes consent to monitoring for these purposes.
进而
Connection closed by <<ip_address>>
答案1
首先尝试在启用详细模式的情况下调试 ssh 会话:
$ ssh -v <address>
另外,请检查密钥的文件权限;确保您已正确添加公钥。例如,请参阅本指南: https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2