相关疑难解决方法(0)

sshd_config 文件中的“无密码”是什么意思?

我刚刚在我的服务器上安装了 Ubuntu 14.04,当我在我的sshd_config文件中遇到这个时,我正在设置我的所有配置文件:

# Authentication:
LoginGraceTime 120
PermitRootLogin without-password
StrictModes yes
Run Code Online (Sandbox Code Playgroud)

这让我非常担心。我认为有人可以在没有密码的情况下以 root 身份登录我的服务器。

我尝试通过以下方式以 root 用户身份连接到我的服务器:

johns-mbp:~ john$ ssh root@192.168.1.48
The authenticity of host '192.168.1.48 (192.168.1.48)' can't be established.
RSA key fingerprint is 40:7e:28:f1:a8:36:28:da:eb:6f:d2:d0:3f:4b:4b:fe.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.48' (RSA) to the list of known hosts.
root@192.168.1.48's password:  
Run Code Online (Sandbox Code Playgroud)

我输入了一个空白密码,但它没有让我进入,这让我松了一口气。所以我的问题是:没有密码意味着什么,为什么这是 Ubuntu 14.04 中的默认设置?

openssh sshd

133
推荐指数
3
解决办法
32万
查看次数

标签 统计

openssh ×1

sshd ×1