没有合适的资源?快使用搜索试试~ 我知道了~
Openssh 8.0升级方法和步骤
3 下载量 144 浏览量
2022-10-27
16:34:42
上传
评论
收藏 14KB DOCX 举报
温馨提示
试读
2页
Openssh 8.0升级方法
资源详情
资源评论
资源推荐
Openssh 8.0 升级方法
sed -i "s#SELINUX=enforcing#SELINUX=disabled#g" /etc/selinux/config
setenforce 0
一、安装依赖
yum update openssh -y
yum install -y pam* zlib*
yum install -y gcc gcc-c++ glibc make autoconf openssl openssl-devel pcre-devel pam-devel
二、安装 openssl-1.0.2r.tar.gz 下载 https://ftp.openssl.org/source/
tar xf openssl-1.0.2r.tar.gz
cd openssl-1.0.2r/
openssl version
mv /usr/bin/openssl /usr/bin/openssl_bak
mv /usr/include/openssl /usr/include/openssl_bak
./config shared && make && make install
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/ssl/include/openssl /usr/include/openssl
echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
/sbin/ldconfig
openssl version
三、安装 penssh-8.0p1.tar.gz 下载 https://openbsd.hk/pub/OpenBSD/OpenSSH/portable/
tar xf openssh-8.0p1.tar.gz
cd openssh-8.0p1/
chown -R root.root ./
mv /etc/ssh /etc/ssh_bak
./configure --prefix=/usr/ --sysconfdir=/etc/ssh --with-openssl-includes=/usr/local/ssl/include
--with-ssl-dir=/usr/local/ssl --with-zlib --with-md5-passwords --with-pam && make
&& make install
cp -a contrib/redhat/sshd.init /etc/init.d/sshd
cp -a contrib/redhat/sshd.pam /etc/pam.d/sshd.pam
chmod +x /etc/init.d/sshd
chkconfig --add sshd
systemctl enable sshd
mv /usr/lib/systemd/system/sshd.service /usr/lib/systemd/system/sshd.service_bak
chkconfig sshd on
miaobinfei
- 粉丝: 130
- 资源: 55
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0