首页 > 系统服务 > 详细

Ubuntu ssh服务安装

时间:2016-10-13 14:20:50      阅读:207      评论:0      收藏:0      [点我收藏+]

在使用xshell连接ubuntu虚拟机时,提示

Could not connect to ‘192.168.0.106‘ (port 22): Connection failed.

在主机使用ping命令,是可以与该虚拟机ping通的。问题在于ubuntu需要开启ssh服务才能使用xshell进行远程连接。

1.使用命令ps -e|grep ssh来查看是否开启了ssh服务

2.如果没有则使用apt-get安装

安装ssh-client命令:sudo apt-get install openssh-client

安装ssh-server命令:sudo apt-get install openssh-server

3.安装后启动服务sudo /etc/init.d/ssh start

Ubuntu ssh服务安装

原文:http://www.cnblogs.com/shiyu404/p/5956053.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!