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

文章描述了如何处理OpenSSH配置文件中的一个错误选项gssapikexalgorithms。首先,注释掉/etc/ssh/ssh_config,然后编辑sshd_config文件,调整相关安全设置,包括禁止root登录,启用公钥认证等。最后,重启sshd服务以应用更改。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

/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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

喜提yBei冰美式

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值