新安装的ubuntu要开启远程连接需要执行如下命令:
sudo apt-get update
sudo apt-get install openssh-server #安装openssh服务
sudo apt-get install ufw #安装防火墙管理软件
sudo ufw enable #开启防火墙
sudo ufw allow 22 #打开22端口
netstat -ntlp|grep 22 #查看22端口是否启用
使用ssh工具连接
新安装的ubuntu要开启远程连接需要执行如下命令:
sudo apt-get update
sudo apt-get install openssh-server #安装openssh服务
sudo apt-get install ufw #安装防火墙管理软件
sudo ufw enable #开启防火墙
sudo ufw allow 22 #打开22端口
netstat -ntlp|grep 22 #查看22端口是否启用
使用ssh工具连接