厦门服务器租用>云服务器>Ubuntu18.04系统如何禁用公钥登录

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

发布时间:2023/1/11 14:22:29

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

在ubuntu18.04中如何禁用公钥登录呢?本文给出详细说明。

1.打开sshd_config文件

vi /etc/ssh/sshd_config

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

2.将#PubkeyAuthentication yes改为PubkeyAuthentication no后保存退出

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

在线客服
微信公众号
免费拨打400-1886560
免费拨打0592-5580190 免费拨打 400-1886560 或 0592-5580190
返回顶部
返回头部 返回顶部