<ssh> -1 安装ssh服务

SSH 为 Secure Shell 的缩写,由 IETF 的网络工作小组(Network Working Group)所制定;SSH 为建立在应用层和传输层基础上的安全协议。SSH 是目前较可靠,专为远程登录会话和其他网络服务提供安全性的协议。利用 SSH 协议可以有效防止远程管理过程中的信息泄露问题。SSH最初是UNIX系统上的一个程序,后来又迅速扩展到其他操作平台。SSH在正确使用时可弥补网络中的漏洞。SSH客户端适用于多种平台。几乎所有U NIX平台—包括HP-UX、Linux、AIX、Solaris、Digital UNIX、Irix,以及其他平台,都可运行SSH。

ubuntu默认安装完成后只有ssh-agent(客户端模式),管理员模式需要另外安装,ubuntu的apt-get几乎无所不能。

1.
在管理员模式#下运行
apt-get install openssh-server即可安装。
突然报错:opensshserver has no installation candidate
  
 #  apt-get install openssh-server
    Reading package lists... Done
    Building dependency tree... Done
    Package aptitude is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package <packagename> has no installation candidate


解决方法如下:
# apt-get update
# apt-get upgrade
# apt-get install openssh-server

这样就可以正常使用apt-get了~

2.检查ssh服务开启状态
网上看到很多方法,比如ps -e |grep ssh或service ssh status均可.


参考:
http://jingyan.baidu.com/article/00a07f38a5c05482d128dc5f.html
http://blog.csdn.net/liuyifeng_510/article/details/7081490
http://www.2cto.com/os/201108/99318.html
http://wenku.baidu.com/link?url=H3VusnfI4VIm88J2_uxvOGOXGSVo2Uq2kkPSErEZPD5vbghAGbTMfJhNocZbVpTmnL_mfdQWcmMGFsTc1ZQga1kH8EbZ_amJIPGY0t10mru

猜你喜欢

转载自zoroeye.iteye.com/blog/2101472
今日推荐