Fork me on GitHub

Xshell无法连接虚拟机中的Ubuntu

遇到问题:

VAWare中安装了Ubuntu-Desktop,Xshell连接失败

 

解决办法:

首先确认虚拟Ubuntu可以正常联网

可能原因是没有安装openssh服务

sudo apt-get install openssh-server

再次Xshell连接,出现问题

原因:Ubuntu中设置了不允许root用户用密码远程登录

解决办法:用非root用户登录,或者

修改 vim /etc/ssh/sshd_config

找到# Authentication:
LoginGraceTime 120
PermitRootLogin without passwd
StrictModes yes

改成

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

重启虚拟机

posted @ 2015-10-09 12:55  Roronoa__Zoro  阅读(363)  评论(0编辑  收藏  举报