远程连接 linux 失败,可能原因是ssh 服务未启动。

1、环境:


VMware 10、ubuntu 12.04



虚拟机上操作系统详细信息如下:


root@ubuntu:/etc/init.d# uname -a
Linux ubuntu 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux



2、

启动ssh 服务


安装ssh服务

提供了便利的apt工具,采用在线安装依赖包将会自动下载并安装。

用户登录,执行  apt-get install openssh-server

sudo apt-get install openssh-server


安装ssh远程连接 linux_远程连接

启动和停止ssh服务


cd /etc/init.d
// 启动 ssh 服务
service ssh start
// 停止 ssh 服务
service ssh stop
// 重启 ssh 服务
service ssh restart



2.3 

查看 ssh 服务是否启动


 如果有sshd服务说明ssh server已经启动,也可以直接start(别restart,这是重启),如果已经启动会提示。

查看服务进程ps -d   grep ssh  或者  pidof sshd


安装ssh远程连接 linux_ubuntu_02

使用ssh 即可远程连接Linux 系统了