Ubuntu安装SSH
Ubuntu安装SSH:
1.更新系统包
sudo apt-get update
2.安装SSH服务
sudo apt-get install openssh-server
3.启动SSH服务
sudo systemctl start ssh
4.查看SSH服务状态
sudo systemctl status ssh
5.设置ssh服务开机自启动
sudo systemctl enable ssh
6.允许ssh通过防火墙
sudo ufw allow ssh
至此ssh服务配置完毕,可从远程客户端使用SSH来连接您的Ubuntu服务器了。