多语言展示
当前在线:696今日阅读:19今日分享:20

怎么解决xshell无法连接Ubuntu16

使用xshell6 连接虚拟机ubuntu16, 提示Could not connect to '192.168.186.140' (port 22): Connection failed.的信息
工具/原料
1

xshell

2

VMware

3

ubuntu

方法/步骤
1

首先切换到root, 执行apt-get update命令

2

安装 ssh 服务, 执行 apt-get install openssh-server 命令

3

检查ssh 服务是否启动, 执行 ps -e | grep ssh 命令

4

使用xshell 连接 ubuntu

注意事项

一般xshell 连接不了linux,极大可能是linux没有安装ssh服务或没有启动服务的原因导致的

推荐信息