视频1 视频21 视频41 视频61 视频文章1 视频文章21 视频文章41 视频文章61 推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37 推荐39 推荐41 推荐43 推荐45 推荐47 推荐49 关键词1 关键词101 关键词201 关键词301 关键词401 关键词501 关键词601 关键词701 关键词801 关键词901 关键词1001 关键词1101 关键词1201 关键词1301 关键词1401 关键词1501 关键词1601 关键词1701 关键词1801 关键词1901 视频扩展1 视频扩展6 视频扩展11 视频扩展16 文章1 文章201 文章401 文章601 文章801 文章1001 资讯1 资讯501 资讯1001 资讯1501 标签1 标签501 标签1001 关键词1 关键词501 关键词1001 关键词1501 专题2001
Ubuntu10下SSH2协议安装
2020-11-09 07:45:34 责编:小采
文档


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

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

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

连接成功

下载本文
显示全文
专题