/etc/crypto-policies/back-ends/openssh.config: line 3: Bad configuration option: gssapikexalgorithms

处理步骤

# 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
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐