-
下载远程连接工具
1.1 sudo apt-get update
1.2 sudo apt install openssh-server
1.3 sudo apt-get install ufw
1.4 sudo ufw enable
1.5 sudo ufw allow 22 -
vim /etc/ssh/sshd_config
2.1 PermitRootLogin yes
2.2 StrictModes yes
默认是注释的,将PermitRootLogin 设置为yes, 将StrictModes 注释打开 -
sudo service ssh start 重启ssh
关于外部不能ssh连接ubuntu服务器
于 2020-12-12 17:50:55 首次发布