Ubuntu18.04系统如何禁用公钥登录

[复制链接] |主动推送
查看178 | 回复0 | 2024-9-12 00:47:17 | 显示全部楼层 |阅读模式
在ubuntu18.04中如何禁用公钥登录呢?本文给出详细说明。
1.打开sshd_config文件
vi /etc/ssh/sshd_config
000502lo467aa4fwpezco3.jpg

2.将#PubkeyAuthentication yes改为PubkeyAuthentication no后保存退出
000503oicr1jeolcl8mm1v.jpg
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则