ubuntu系统的电脑当作ssh服务端
1. 安装openssh服务端
sudo apt update
sudo apt install openssh-server
sudo systemctl enable --now ssh
2. 检查服务状态
sudo systemctl status ssh
3. 确认放回呛放行22端口
sudo ufw allow OpenSSH
sudo ufw status
可以在客户端使用ssh连接服务端了
1. 安装openssh服务端
sudo apt update
sudo apt install openssh-server
sudo systemctl enable --now ssh
2. 检查服务状态
sudo systemctl status ssh
3. 确认放回呛放行22端口
sudo ufw allow OpenSSH
sudo ufw status
可以在客户端使用ssh连接服务端了