XShell连接失败:Could not connect to '192.168.191.128' (port 22): Connection failed.

连接xshell失败,报错如下图,怎么解决呢。XShell连接失败:Could not connect to '192.168.191.128' (port 22): Connection failed.
1、通过ps -e|grep ssh命令判断是否安装ssh服务
XShell连接失败:Could not connect to '192.168.191.128' (port 22): Connection failed.
2、如果只有客户端安装了,服务器没有安装,则需要安装ssh服务器,命令:apt-get install openssh-server
XShell连接失败:Could not connect to '192.168.191.128' (port 22): Connection failed.
3、安装成功之后,启动ssh服务,命令:/etc/init.d/ssh start
XShell连接失败:Could not connect to '192.168.191.128' (port 22): Connection failed.
4、通过ps -e|grep ssh命令再次判断是否正确启动
XShell连接失败:Could not connect to '192.168.191.128' (port 22): Connection failed.
5、启用成功后重新连接,滴滴滴,安排上了
XShell连接失败:Could not connect to '192.168.191.128' (port 22): Connection failed.