>데이터 베이스 >MySQL 튜토리얼 >Ubuntu10下SSH2协议安装

Ubuntu10下SSH2协议安装

WBOY
WBOY원래의
2016-06-07 15:26:491350검색

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

Ubuntu10SSH2协议安装

SSH2是一套安全通讯协议框架(早期的SSH1由于存在安全漏洞,现在已经不用了),基于SSH2协议的产品目前主要有opensshputtySSH 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

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配置

Ubuntu10下SSH2协议安装

连接成功

Ubuntu10下SSH2协议安装

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.