Solution Summary of error problem during sshd upgrade. txt

Source: Internet
Author: User
Tags openssl library openssl version

Redhat 4.8 Upgrade OpenSSH 6.6 Error

Symptom: Prompt for OpenSSL version mismatch. Built against 1000000f, you have information,


Whereis sshd

Ssh:/usr/local/sshd

The path to the sshd is found to be different from the normal as 4.8 path: sshd:/usr/sbin/sshd



Log in, found that the path of sshd for/usr/local/sbin/sshd, has now been changed to/USR/SBIN/SSHD, can now be normal landing


More/etc/init.d/sshd



Retval=0

Prog= "Sshd"


# Some functions to make the below more readable

Keygen=/usr/bin/ssh-keygen

Sshd=/usr/sbin/sshd

Rsa1_key=/etc/ssh/ssh_host_key

Rsa_key=/etc/ssh/ssh_host_rsa_key

Dsa_key=/etc/ssh/ssh_host_dsa_key

Pid_file=/var/run/sshd.pid



Modify sshd= to the normal call script path,


#######################



SSH version for OPENSSH_4.3P2 upgrade times wrong Configure:error:PAM headers not found

Installed Zlib-devel, Pam-devel package, upgrade success.


###########################


Symptom: Compile error C_ZLIB.C Error:bio_zlib_ctx has no member

Processing result: Installed Zlib-devel, Pam-devel package, upgrade success.


######################


Symptom: Compile error C_ZLIB.C Error:bio_zlib_ctx has no member, installed Zlib-devel and Pam-devel compiled installation succeeded,

Execute service sshd restart times wrong:

Starting sshd:/usr/sbin/sshd:error while loading shared libraries:

libcrypto.so.1.0.0:failed to map segment from shared Object:permission denied

After SELinux is turned off, SSH is ok

#######################

Upgrade OpenSSL

which OpenSSL

/usr/bin/openssl


1.wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz

2.tar ZXVF openssl-1.0.1c.tar.gz

3.CD openssl-1.0.1c

4../config--PREFIX=/USR

5.make && make test && make install


1.checking whether GETPGRP requires zero arguments ... yes

2.checking OpenSSL Header Version ... 1000103f (OpenSSL 1.0.1c 2012)

3.checking OpenSSL Library version ... 90802f (OpenSSL 0.9.8e-fips-rhel5 2008)

4.checking whether OpenSSL ' s headers match the library ... no

5.configure:error:your OpenSSL headers do not match Your

6.library. Check Config.log for details.

7.If sure your installation is consistent, you can disable the check

8.by running "./configure--without-openssl-header-check".

9.Also See contrib/findssl.sh for help identifying header/library mismatches.

will not run correctly


1.ssh-keygen-t rsa-f/etc/ssh/ssh_host_rsa_key

2.OpenSSL version mismatch. Built against 1000103f, you have 90802f


Need to take the--shared parameter otherwise the header file and library file does not match, re-unzip the openssl.tar.gz, and then take the--shared compilation

3.CD openssl-1.0.1c

4../config--prefix=/usr--shared


#################################################################################

Unable to find libcrypto.so.1.0.0 after installing OpenSSL


/usr/local/openssl/lib/libcrypto.so.1.0.0

Before compiling

Copy CentOS 5.8 compiled/usr/local/openssl/lib/libcrypto.so to the/lib directory

SuSE 11 Upgrade 6.7 error, plus statement


if [-f/lib/libcrypto.so.1.0.0];then

echo "libcryto.so.1.0.0 is in!"

Else

CP libcrypto.so.1.0.0/lib/libcrypto.so.1.0.0

Ln-s/lib/libcrypto.so.1.0.0/lib/libcrypto.so

Fi




This article is from the "Clumsy birds have" blog, make sure to keep this source http://2574526.blog.51cto.com/2564526/1598997

Solution Summary of error problem during sshd upgrade. txt

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.