当前位置: 首页 > news >正文

Ubuntu24.04开通SSH远程服务

Ubuntu24.04开通SSH远程服务

1.安装SSH
sudo apt-get update
image
sudo apt-get install openssh-server
image

2.查看SSH状态

sudo systemctl status ssh
image

3.启动SSH服务

sudo systemctl start ssh
image

4.启用SSH服务(开机自启)
sudo systemctl enable ssh

SSH连接格式:用户名@IP地址,比如root@192.168.8.8