setp1:检查是否安装了ssh
命令:
dpkg --list|grep ssh
出现:
ii libssh-4 0.4.2-1ubuntu1 A tiny C SSH library
ii openssh-client 1:5.3p1-3ubuntu4 secure shell (SSH) client, for secure access
ii openssh-server 1:5.3p1-3ubuntu4 secure shell (SSH) server, for secure access
ii ssh-askpass-gnome 1:5.3p1-3ubuntu4 interactive X program to prompt users for a
如果有openssh-client 和openssh-server 则是已安装
如果没有安装,可输入以下命令:
sudo apt-get install openssh
step2:检测是否启动ssh
命令:
ps -ef|grep ssh
出现:
root 684 1 0 22:40 ? 00:00:00 /usr/sbin/sshd
frankwoo 2329 2285 0 22:43 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session
root 31254 684 0 23:49 ? 00:00:00 sshd: root@pts/2
root 31408 31341 0 23:58 pts/2 00:00:00 grep --color=auto ssh
如果有ssh字眼,则表明已启动。
如果没有启动,输入以下命令:
/etc/init.d/ssh start
启动后出现:
* Starting OpenBSD Secure Shell server sshd [ OK ]
表明启动成功
step3:在Windows环境下,使用putty或secureCRT连接测试
我这里用的是putty。
因为要输入IP。这里我在ubuntu里输入命令:
ifconfig
因为是使用虚拟机VMware,并以Bridged方式连接,因此只需看eth0这部分,命令输入后找到inet字眼,后面的IP就是你在Putty新建的connection里需要输入的IP。用图比较直观,可见下图:
就是Hostname输入的那个IP,点击Open。如果能成功连接,则表明在ubuntu下开启ssh服务完全成功。
分享到:
相关推荐
ubuntu11.04的详细安装方法,其中包括自动分区和手动分区的步骤,希望能对广大用户有帮助!
本人在VMware虚拟机 安装的 Ubuntu 11.04 & Ubuntu server 12.04 上的安装记录 多部电脑/服务器验证通过
最新的Ubuntu 11.04安装指南(详细图解)
Ubuntu11.04 下载
CSI Tool 集成安装包(适配Ubuntu 11.04系统,Intel 5300 无线网卡) csitools
最快最全的Ubuntu11.04源,速度超快
ubuntu11.04安装wine1.3的图文方法。 ubuntu11.04安装wine1.3的图文方法。 ubuntu11.04安装wine1.3的图文方法。 ubuntu11.04安装wine1.3的图文方法。
ubuntu11.04上编译omap3530内核存在问题解决方法.使用的是天漠公司的sbc8100开发板
ubuntu11.04如何从图形界面切换的终端及root 用户的切换ubuntu11.04如何从图形界面切换的终端及root 用户的切换ubuntu11.04如何从图形界面切换的终端及root 用户的切换ubuntu11.04如何从图形界面切换的终端及root ...
硬盘全新安装ubuntu11.04 硬盘全新安装ubuntu11.04
Ubuntu 11.04 安装后要做的20件事情 Ubuntu 11.04 安装后要做的20件事情 Ubuntu 11.04 安装后要做的20件事情
安装ubuntu11.04的安装,亲测可用,放心下载 Ubuntu(又称乌班图)是一个以桌面应用为主的开源GNU/Linux操作系统,Ubuntu 是基于Debian GNU/Linux,支持x86、amd64(即x64)、ARM和ppc架构,由全球化的专业开发团队...
minigui1.3.3移植至ubuntu11.04详细教程
ubuntu11.04制作离线镜像源的方法文档,偶亲自试验成功,并制作出文档与大家交流。
无线破解spoonwep-spoonwpa,支持ubuntu11.04,试验过了
on an Ubuntu 11.04 desktop using Eclipse, the Android SDK, and PhoneGap. I will describe how to build Android apps from the command line with PhoneGap and from the GUI with Eclipse and PhoneGap and ...
在VMware Player 安装 ubuntu11.04全图解
windows7+ubuntu11.04 双系统安装.pdf
ubuntu 11.04 3D桌面教程