
升级方法:
1、加载本地源(方法不描述了)
2、执行下列命令
yum install bash -y
yum install -y zlib zlib-devel openssl openssl-devel
tar -zxvf openssh-6.6p1.tar.gz -C /usr/local/src/
cd /usr/local/src/openssh-6.6p1/
cp /etc/init.d/sshd /etc/init.d/sshd.old
tar -cvf ssh.bak.tar /etc/ssh
yum install gcc -y
3、卸载老版本
rpm -qa|grep ssh
rpm -e openssh-server-5.3p1-81.el6.x86_64
rpm -e openssh-clients-5.3p1-81.el6.x86_64 --nodeps
rpm -qa|grep ssh
rpm -e openssh-askpass-5.3p1-81.el6.x86_64
rpm -e openssh-5.3p1-81.el6.x86_64
rpm -qa|grep ssh
4、开始升级
。/configure --prefix=/usr --sysconfdir=/etc/ssh --with-zlib --with-md5-passwords
make &&make install
mv /etc/init.d/sshd.old /etc/init.d/sshd
mkdir -p /var/empty/sshd/etc
/etc/init.d/sshd restart
chkconfig --add sshd
chkconfig sshd on
chkconfig --list|grep sshd
5、查看是否升级成功
ssh -V
OpenSSH_6.6p1, OpenSSL 1.0.0-fips 29 Mar 2010
以上就是Linux系统下怎么升级OpenSSH的介绍了,升级成功了旧版本的一些问题和故障自然就能得到修复了。
SSH是为网络数据安全传输提供的安全协议OpenSSH是基于SSH协议开发的软件
安装客户端:yum -y install openssh-clients
安装服务端:yum -y install openssh-server
---注1:系统默认安装该服务,通过(rpm -qa | grep openssh)查看
管理SSH服务:service sshd start/restart/stop
---注2:在Linux服务后面一般都加d,如:openssh(sshd 22)、apache(httpd 80)、mysql(mysqld 3306)
开启SSH服务 -提供如下管理系统功能
1)远程登录管理功能
2)远程复制功能
3)文件传输功能
---在Linux或mac系统下,默认已安装openssh-clients客户端,所以可直接通过ssh、scp、sftp指令管理开启sshd服务的系统
---在widnow系统下,通过基于SSH协议的第三方软件putty、WinSCP管理开启sshd服务的系统
使用如下指令实现
1)SSH指令
语法1:ssh 账号@服务器IP地址
语法2:ssh -l 账号 服务器IP地址
3)SCP命令
上传命令:scp 本地文件 用户名@服务器IP地址:文件保存路径
获取命令:scp 用户名@服务器IP地址:文件保存路径 本地文件
案例一:上传
直接使用如下两款软件即可
1、SSL(Secure Sockets Layer 安全套接层),它提供使用 TCP/IP 的通信应用程序间的隐私与完整性。比如你访问https://servername 就是用了ssl协议,地址栏会出现小锁,双击就能查看ssl服务器证书的详细信息。TCP端口:4432、SSH(Secure Shell 远程登陆用),安全可以和telnet比较一下,比如telnet传输用户密码是明文的,而SSH是加密的。明文的可以监听到。TCP端口22
3、OpenSSH是个SSH的软件,OpenSSH is the premier connectivity tool for remote login with the SSH protocol. linux/unix都用openssh软件提供SSH服务。简单来说,比如以前的Solaris系统默认不提供ssh服务,需要安装OpenSSH才行。
The OpenSSH suite consists of the following tools:
Remote operations are done using ssh, scp, and sftp.
Key management with ssh-add, ssh-keysign, ssh-keyscan, and ssh-keygen.
The service side consists of sshd, sftp-server, and ssh-agent.
4、OpenSSL是一个安全套接字层密码库,囊括主要的密码算法、常用的密钥和证书封装管理功能及SSL协议,并提供丰富的应用程序。比如很多程序安装依赖openssl头文件。
openssl命令也是一个很实用且有很多参数的工具。比如申请ssl证书时候或者计算hash值时候都用的到。例如:
a)openssl md5 a.txt
b)echo -n 123456 |openssl md5
c)openssl创建localhost证书
d)使用openssl命令加密文件
e)验证ssl服务器
openssl s_client -connect servername:443
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)