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

Ubuntu18.04系统如何禁用密码登录

发布时间:2023/1/11 14:17:01

Ubuntu18.04系统如何禁用密码登录

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

1.打开sshd_config文件

vi /etc/ssh/sshd_config

Ubuntu18.04系统如何禁用密码登录-1298

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

Ubuntu18.04系统如何禁用密码登录-1299

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