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

公羊渝
2023-12-01

处理步骤

# 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
 类似资料: