昨天在VMware Player中安装了ubuntu系统,今天想通过xshell连接ubuntu,结果显示

Connecting to 10.7.100.182:22... Could not connect to '10.7.100.182' (port 22): Connection failed.
VM中网络连接设置了Bridge模式。
 
网络查找解决办法如下:
xshell连接不了ubuntu,原因没有安装openssh-server,解决方法:
 
$:sudo apt-get install openssh-server
 
查看server是否启动:
 
$:ps -ef |grep ssh
 
如果看到/usr/sbin/sshd -D,说明服务已经启动,否则服务尚未启动,那么需要启动server:
 
$:/etc/init.d/ssh start
 
 
接下来就可以用xshell连接了。如果xshell中看到乱码的情况,那么可以xshell的编码改成UTF-8!
 
xshell中修改编码为UTF-8的方法:[文件]–>[打开]–>在打开的session中选择连接的那个 ,点击properties -> [Terminal ] ,在右边的translation先选择utf8,然后重新连接服务器即可。

相关文章:

  • 2021-12-27
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2022-02-14
  • 2022-03-10
  • 2022-12-23
  • 2021-05-24
猜你喜欢
  • 2022-01-20
  • 2021-07-18
  • 2021-08-20
  • 2021-07-13
  • 2021-07-17
  • 2021-12-07
相关资源
相似解决方案