职业IT人-IT人生活圈

 找回密码
 成为会员
搜索
查看: 417|回复: 2

Ubuntu10下SSH2协议安装

[复制链接]
无处不在 发表于 2011-8-26 09:51 | 显示全部楼层 |阅读模式
SSH2是一套安全通......
我的ubuntuse......
非常简单的直接安装o......


SSH2是一套安全通讯协议框架(早期的SSH1由于存在安全漏洞,现在已经不用了),基于SSH2协议的产品目前主要有openssh,putty,SSH Secure Shell Client等。安装了SSH2后,我们就可以通过Secure CRT连接服务器了。ubuntu10默认安装openssl.

检查和安装ssh
Java代码  
dpkg --list|grep ssh   
//如果有openssh-client 和openssh-server,就不再需要再安装了   
//如果openssh-server没有安装,可输入以下命令:   
sudo apt-get install ssl  

dpkg --list|grep ssh
//如果有openssh-client 和openssh-server,就不再需要再安装了
//如果openssh-server没有安装,可输入以下命令:
sudo apt-get install ssl
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://cn.archive.ubuntu.com lucid-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/lucid-updates/Release  

W: Some index files failed to download, they have been ignored, or old ones used instead.

报错了,GPG和源的问题.
Java代码  
//网上的解决办法,但是我的无效。   
sudo aptitude -o Acquire::http::No-Cache=True -o Acquire::BrokenProxy=true update   
  
//多方查找,在国外的网站上找到方法。   
guangbo@guangbo-laptop:~$ sudo apt-get clean   
guangbo@guangbo-laptop:~$ cd /var/lib/apt   
guangbo@guangbo-laptop:/var/lib/apt$ sudo mv lists lists.old   
guangbo@guangbo-laptop:/var/lib/apt$ sudo mkdir -p lists/partial   
guangbo@guangbo-laptop:/var/lib/apt$ sudo apt-get clean   
guangbo@guangbo-laptop:/var/lib/apt$ sudo apt-get update   
//重新安装   
sudo apt-get install ssl   
//查看是否安装成功   
dpkg --list|grep ssh  

//网上的解决办法,但是我的无效。
sudo aptitude -o Acquire::http::No-Cache=True -o Acquire::BrokenProxy=true update

//多方查找,在国外的网站上找到方法。
guangbo@guangbo-laptop:~$ sudo apt-get clean
guangbo@guangbo-laptop:~$ cd /var/lib/apt
guangbo@guangbo-laptop:/var/lib/apt$ sudo mv lists lists.old
guangbo@guangbo-laptop:/var/lib/apt$ sudo mkdir -p lists/partial
guangbo@guangbo-laptop:/var/lib/apt$ sudo apt-get clean
guangbo@guangbo-laptop:/var/lib/apt$ sudo apt-get update
//重新安装
sudo apt-get install ssl
//查看是否安装成功
dpkg --list|grep ssh

ii  openssh-client                       1:5.3p1-3ubuntu6                                secure shell (SSH) client, for secure access
ii  openssh-server                       1:5.3p1-3ubuntu6                                secure shell (SSH) server, for secure access
ii  ssh                                  1:5.3p1-3ubuntu6                                secure shell client and server (metapackage)
ii  ssh-askpass-gnome                    1:5.3p1-3ubuntu4                                interactive X program to prompt users for a

检测并启动ssh
Java代码  
ps -ef|grep openssl   
//如果有openssl字眼,则表明已启动。   
sudo /etc/init.d/ssh start  

ps -ef|grep openssl
//如果有openssl字眼,则表明已启动。
sudo /etc/init.d/ssh start
[sudo] password for guangbo:
* Starting OpenBSD Secure Shell server sshd

其它修改
至于更新源,我其实先更新下面的文件。但是未生效,于是有上面的方法。如果上面的方法生效,下面的请直接无视。
I'm also have the same problem... after googled for sometimes, I have finally found the solution here
just edit
Quote:
/etc/resolv.conf
and put this at the top of it
Quote:
# google nameservers
nameserver 8.8.8.8
nameserver 8.8.4.4
Quote:
sudo apt-get update
and no more error
hope it will help

SecureCRT连接测试
Java代码  
//请确保ubunto10已启动ssh2协议,端口22.   
sudo /etc/init.d/ssh start  

//请确保ubunto10已启动ssh2协议,端口22.
sudo /etc/init.d/ssh start

SecureCRT配置



连接成功




大小: 56.7 KB

大小: 72.3 KB
查看图片附件

楠楠 发表于 2011-8-26 09:52 | 显示全部楼层
我的ubuntu server 11.04 beta和10.04,直接apt-get openssh,正常安装,一直用的好好的。

月上萧萧 发表于 2011-8-26 09:52 | 显示全部楼层
非常简单的直接安装openssh即可阿
您需要登录后才可以回帖 登录 | 成为会员

本版积分规则

QQ|手机版|小黑屋|网站帮助|职业IT人-IT人生活圈 ( 粤ICP备12053935号-1 )|网站地图
本站文章版权归原发布者及原出处所有。内容为作者个人观点,并不代表本站赞同其观点和对其真实性负责,本站只提供参考并不构成任何投资及应用建议。本站是信息平台,网站上部分文章为转载,并不用于任何商业目的,我们已经尽可能的对作者和来源进行了通告,但是能力有限或疏忽造成漏登,请及时联系我们,我们将根据著作权人的要求立即更正或者删除有关内容。

GMT+8, 2024-5-9 04:18 , Processed in 0.106965 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表