# ssh远程连接

# ubuntu系统

  1. 安装SSH服务
sudo apt update
sudo apt install openssh-server
  1. 启动SSH服务
sudo systemctl start ssh
  1. 设置开机自启
sudo systemctl enable ssh
  1. 检查SSH服务状态
sudo systemctl status ssh
  1. 开放SSH端口(默认为22)
sudo ufw allow 22
  1. 连接测试
ssh chs@192.168.0.113
Last Updated: 11/18/2024, 4:01:47 PM