Ubuntu10下SSH2协议安装

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

检查和安装ssh
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 <[email protected]>
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和源的问题.
//网上的解决办法,但是我的无效。
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
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连接测试
//请确保ubunto10已启动ssh2协议,端口22.
sudo /etc/init.d/ssh start


SecureCRT配置



连接成功


猜你喜欢

转载自peterwei.iteye.com/blog/976944
今日推荐