处理步骤

# 1、注释/etc/ssh/ssh_config


# 2、修改/etc/ssh/sshd_config

LogLevel    INFO
PermitRootLogin no
AuthorizedKeysFile	.ssh/authorized_keys
IgnoreRhosts yes
PermitEmptyPasswords no
ChallengeResponseAuthentication no
ClientAliveInterval 60
ClientAliveCountMax 5
UseDNS no
Banner /etc/ssh/ssh_banner
Banner /etc/ssh/ssh_banner
Subsystem	sftp	/usr/local/openssh-8.5p1/libexec/sftp-server
Protocol 2
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256
UseDNS no
PubkeyAuthentication yes
PasswordAuthentication yes

# 3、重启ssh服务
systemctl restart sshd

原文地址:https://blog.csdn.net/qq_46001933/article/details/129735653

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任

如若转载,请注明出处:http://www.7code.cn/show_39488.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱suwngjj01@126.com进行投诉反馈,一经查实,立即删除

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注