Ubuntu 开启22端口(远程连接xshell)

701 阅读1分钟

1. 配置22端口 使用xshell连接

检查是否开启了22端口

lsof -i:22

为空就是没有开启

  1. 安装
//安装后需要重启 
sudo apt-get install openssh-server openssh-client
  1. 重启
reboot
  1. 开启
service ssh start 
ssh localhost 
lsof -i:22

xshell 链接