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连接服务端了

posted @ 2026-10-16 11:27  小小泡zdy  阅读(6)  评论(0)    收藏  举报