场景
需要通过xshell工具,通过ssh连接ubuntu服务器。默认端口22。
结果
常规连接


命令行连接
//直接通过命令连接
ssh 远程机器名@192.168.67.128
或者
telnet 192.168.67.128 22

分析
ip和端口都没有问题。
查看服务器22端口是否启动。
lsof -i:22

//安装后需要重启
sudo apt-get install openssh-server openssh-client

service ssh start
ssh localhost
lsof -i:22

ssh远程连接访问
