Home Ubuntu开启SSH访问
Post
Cancel

Ubuntu开启SSH访问

安装SSH服务器

1
2
sudo apt update
sudo apt install -y openssh-server

启动SSH服务

1
sudo systemctl start ssh

确认SSH服务状态

1
sudo systemctl status ssh

(可选)设置防火墙

1
sudo ufw allow ssh

设置SSH服务为开机启动

1
sudo systemctl enable ssh
This post is licensed under CC BY 4.0 by the author.