AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

SSHD is not starting

  • 1.  SSHD is not starting

    Posted Tue December 15, 2020 03:47 PM
    aixlab6:/# lssrc -s sshd
    Subsystem Group PID Status
    sshd ssh inoperative
    aixlab6:/# startsrc -s sshd
    0513-059 The sshd Subsystem has been started. Subsystem PID is 704752.
    aixlab6:/# exec(): 0509-036 Cannot load program /usr/sbin/sshd because of the following errors:
    0509-130 Symbol resolution failed for /usr/lib/libcrypto.a(libcrypto.so.1.0.0) because:
    0509-136 Symbol __fd_select (number 61) is not exported from
    dependent module /usr/lib/libc.a(shr.o).
    0509-150 Dependent module libcrypto.a(libcrypto.so.1.0.0) could not be loaded.
    0509-026 System error: Cannot run a file that does not have a valid format.
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.
    exec(): 0509-036 Cannot load program /usr/sbin/sshd because of the following errors:
    0509-130 Symbol resolution failed for /usr/lib/libcrypto.a(libcrypto.so.1.0.0) because:
    0509-136 Symbol __fd_select (number 61) is not exported from
    dependent module /usr/lib/libc.a(shr.o).
    0509-150 Dependent module libcrypto.a(libcrypto.so.1.0.0) could not be loaded.
    0509-026 System error: Cannot run a file that does not have a valid format.
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.
    exec(): 0509-036 Cannot load program /usr/sbin/sshd because of the following errors:
    0509-130 Symbol resolution failed for /usr/lib/libcrypto.a(libcrypto.so.1.0.0) because:
    0509-136 Symbol __fd_select (number 61) is not exported from
    dependent module /usr/lib/libc.a(shr.o).
    0509-150 Dependent module libcrypto.a(libcrypto.so.1.0.0) could not be loaded.
    0509-026 System error: Cannot run a file that does not have a valid format.
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.

    aixlab6:/# lssrc -s sshd
    Subsystem Group PID Status
    sshd ssh inoperative
    aixlab6:/#

    ------------------------------
    Mukesh Kumar
    ------------------------------


  • 2.  RE: SSHD is not starting

    Posted Wed December 16, 2020 02:20 AM
    Hello Mukesh,

    Check this link. It has mentioned for similar kind of libcrypto.a issue.

    ------------------------------
    Mayank Shah
    ------------------------------



  • 3.  RE: SSHD is not starting

    Posted Wed December 16, 2020 02:22 AM
    Check this. It is for similar issue.

    https://www.ibm.com/support/pages/node/6258275

    ------------------------------
    Mayank,
    ### Posted views are my own ###
    ------------------------------



  • 4.  RE: SSHD is not starting

    Posted Wed December 16, 2020 04:54 AM
    Edited by Dmitry Mironov Wed December 16, 2020 04:56 AM

    Hi Mukesh,

    SSHD is quite stable, it can't fail without any reasons.

    Libcrypto is the OpenSSL. Have you updated it?

    So, answer the following questions (at least to yourself)
    1. When it stopped working?
    2. Have you updated/installed any SW packages recently?
    It may be the root cause of this error.

    Check the installed packages
    lslpp -l openssl*
    (expecting openssl.base 1.0.2.*)
    lslpp -l openssh*
    (expecting openssh 7.5.*.* or 8.1.*.*)
    check the integrity
    lppchk -c openssl.base
    (expecting no output)

    The easiest way to fix is to reinstall openssl and openssh
    Download link https://www-01.ibm.com/marketing/iwm/platform/mrs/assets?source=aixbp
    Don't forget to backup /etc/ssh directory BEFORE!

    But try to identify the reason of this failure first. As I've told, it have to be some.
    ---
    Dmitry Mironov



    ------------------------------
    Dmitry Mironov
    ------------------------------



  • 5.  RE: SSHD is not starting

    Posted Wed December 16, 2020 07:52 AM
    Please find below output:

    aixlab6:/# lslpp -l openssl*
    Fileset Level State Description
    ----------------------------------------------------------------------------
    Path: /usr/lib/objrepos
    openssl.base 1.0.2.2001 COMMITTED Open Secure Socket Layer
    openssl.license 1.0.2.2001 COMMITTED Open Secure Socket License
    openssl.man.en_US 1.0.2.2001 COMMITTED Open Secure Socket Layer

    Path: /etc/objrepos
    openssl.base 1.0.2.2001 COMMITTED Open Secure Socket Layer
    aixlab6:/# lslpp -l openssh*
    Fileset Level State Description
    ----------------------------------------------------------------------------
    Path: /usr/lib/objrepos
    openssh.base.client 8.1.102.2100 COMMITTED Open Secure Shell Commands
    openssh.base.server 8.1.102.2100 COMMITTED Open Secure Shell Server
    openssh.license 8.1.102.2100 COMMITTED Open Secure Shell License
    openssh.man.en_US 8.1.102.2100 COMMITTED Open Secure Shell
    Documentation - U.S. English
    openssh.msg.en_US 8.1.102.2100 COMMITTED Open Secure Shell Messages -
    U.S. English

    Path: /etc/objrepos
    openssh.base.client 8.1.102.2100 COMMITTED Open Secure Shell Commands
    aixlab6:/# lppchk -c openssl.base
    aixlab6:/#

    ------------------------------
    Mukesh Kumar
    ------------------------------



  • 6.  RE: SSHD is not starting

    Posted Wed December 16, 2020 07:36 AM

    Did you try " /usr/sbin/updtvpkg" to rebuild the connection between the AIX shared libraries and the rpm repository ?

    Maybe "rpm -Va" would show inconsistencies in the rpm environment.



    ------------------------------
    Achim Haag
    ------------------------------



  • 7.  RE: SSHD is not starting

    Posted Wed December 16, 2020 07:57 AM
    I am getting below dependencies:

    aixlab6:/# /usr/sbin/updtvpkg
    Please wait...
    aixlab6:/# rpm -Va
    S.5....T c /etc/sudoers
    Unsatisfied dependencies for AIX-rpm-5.2.0.105-6: rpm, rpm-build, bzip2, gettext, gzip, info, patch, popt, zlib
    aixlab6:/#

    ------------------------------
    Mukesh Kumar
    ------------------------------



  • 8.  RE: SSHD is not starting

    Posted Wed December 16, 2020 08:37 AM
    Looks like your AIX level is 5.2. Pretty old.
    May be the openssh you have won't support AIX 5.2 ? 

    On AIX 6.1 libc has the __fd_select 

    # dump -Tov /usr/lib/libc.a | grep fd_select
    [1125] 0x00075bc4 .data EXP DS SECdef [noIMid] __fd_select

    ------------------------------
    Ayappan P
    ------------------------------



  • 9.  RE: SSHD is not starting

    Posted Wed December 16, 2020 11:51 AM

    AIX 5.2? Wow.

    >May be the openssh you have won't support AIX 5.2 ?

    Installed SSL and SSH versions are fresh. Is it possible to install them on AIX 5.2?
    If yes - they have to be supported, or installp should preventsuch action.
    But Ayappan have to know it better, as an IBMer.

    Btw, Mukesh:

    1. When it stopped working?
    2. Have you updated/installed any SW packages recently?
    OpenSSH should have a reason to fail. It's very stable, from my experience.



    ------------------------------
    Dmitry Mironov
    ------------------------------



  • 10.  RE: SSHD is not starting

    Posted Wed December 16, 2020 01:07 PM
    It looks like it doesn't support current openssh/openssl version. I need to install again below version again which were earlier. 

    freeware.openssh.rte 3.8.1.0 COMMITTED OpenSSH 3.8p1
    freeware.openssl.rte 0.9.7.1 COMMITTED Openssl 0.9.7g

    Can someone please provide me above packages?

    ------------------------------
    Mukesh Kumar
    ------------------------------



  • 11.  RE: SSHD is not starting

    Posted Thu December 17, 2020 02:11 AM
    Edited by Ayappan P Thu December 17, 2020 11:35 AM

    The official openssh filesets from IBM are supported from AIX 5.3 onwards according to the openssh README file. 

    AIX 5.2 is very old and the support ended 10 years back. Hardly any softwares for that AIX level can be found now and any recent softwares won't work on it.

    Perhaps you need to switch to AIX 5.3 or any other higher levels.



    ------------------------------
    Ayappan P
    ------------------------------



  • 12.  RE: SSHD is not starting

    Posted Wed December 16, 2020 07:36 AM

    Hi Mukesh,

    SSHD is quite stable, it can't fail without any reason.

    Answer, at least to ourself, the following questions:

    1. Is it worked previousely?

    2. Have you made any SW install/update recently?
    It may be the root couse of the failure.

    Libcrypto means OpenSSL.
    Check the packages
    lslpp -l openssl*

    (there should be openssl.base 1.0.2.xxx)

    lslpp -l openssh*

    (expecting 7.5.102.xxx)
    Also you may check interity

    lppchk -c openssl.base
    (expecting no output)

    The easiest way to fix is to re-install the OpenSSL.
    It's always useful as it has to improve the security.
    Download link
    https://www-01.ibm.com/marketing/iwm/platform/mrs/assets?source=aixbp
    Don't forget to backup your /etc/ssh directory!


    ---

    Dmitry Mironov



    ------------------------------
    Dmitry Mironov
    ------------------------------