Loading
0

centos 7 升级 openssh

安装telnet:

yum install -y xinetd telnet-server

配置文件添加终端类型:

vim /etc/securetty

配置文件加入:

pts/0
pts/1
pts/2
pts/3

开启telnet服务:

systemctl start telnet.socket
systemctl enable telnet.socket

OpenSSL下载地址:https://ftp.openssl.org/source/

编译安装openssl:

 ./config --prefix=/usr/local/openssl  --shared && make && make install

创建软链:

ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/openssl/include/openssl /usr/include/openssl

OpenSSH下载地址:https://openbsd.hk/pub/OpenBSD/OpenSSH/portable/

编译安装openssh:

./configure --prefix=/usr/local/openssh --sysconfdir=/etc/ssh  --with-openssl-includes=/usr/local/include/openssl \
 --with-ssl-dir=/usr/local/openssl   --with-zlib   --with-md5-passwords   --with-pam  && make && make install

参考:

最后编辑于:2021/10/30作者: 编程小战

我不入地狱,谁入地狱?

评论已关闭