问题:为了防止服务器被暴力破解,禁止账号、密码进行ssh连接服务器
方法:
vim /etc/ssh/sshd_config
修改
#PasswordAuthentication yes
为
PasswordAuthentication no
sudo service ssh restart
问题:为了防止服务器被暴力破解,禁止账号、密码进行ssh连接服务器
方法:
vim /etc/ssh/sshd_config
修改
#PasswordAuthentication yes
为
PasswordAuthentication no
sudo service ssh restart