Ubuntu10下SSH2协议安装

php中文网
发布: 2016-06-07 15:26:49
原创
1702人浏览过

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)

InsCode
InsCode

InsCode 是CSDN旗下的一个无需安装的编程、协作和分享社区

InsCode 187
查看详情 InsCode

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协议安装

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号