主要參考阮一峰老師的這篇文章:linux服務(wù)器的初步配置流程
特別注意:

在進(jìn)行上面位置的配置時(shí),不需要配置成下面這個(gè)樣子:
PermitRootLogin no
PermitEmptyPasswords no
PasswordAuthentication no
配置成如下所示:

image.png
主要參考阮一峰老師的這篇文章:linux服務(wù)器的初步配置流程
特別注意:
在進(jìn)行上面位置的配置時(shí),不需要配置成下面這個(gè)樣子:
PermitRootLogin no
PermitEmptyPasswords no
PasswordAuthentication no
配置成如下所示: