AIX

 View Only
  • 1.  sshd Will not start

    Posted Fri March 04, 2022 02:50 PM
    #lssrc -s sshd; startsrc -s sshd; sleep 5 ; lssrc -s sshd
    Subsystem Group PID Status
    sshd ssh inoperative
    0513-059 The sshd Subsystem has been started. Subsystem PID is 15269954.
    Subsystem Group PID Status
    sshd ssh inoperative

    #lslpp -l | grep -i ssh
    openssh.base.client 8.1.102.2105 COMMITTED Open Secure Shell Commands
    openssh.base.server 8.1.102.2105 COMMITTED Open Secure Shell Server
    openssh.license 8.1.102.2105 COMMITTED Open Secure Shell License
    openssh.man.en_US 8.1.102.2105 COMMITTED Open Secure Shell
    openssh.base.client 8.1.102.2105 COMMITTED Open Secure Shell Commands

    #lslpp -l | grep -i ssl
    GSKit8.gskssl64.ppc.rte 8.0.14.28 COMMITTED IBM GSKit SSL Runtime With
    openssl.base 1.1.1.1200 COMMITTED Open Secure Socket Layer
    openssl.license 1.1.1.1200 COMMITTED Open Secure Socket License
    openssl.man.en_US 1.1.1.1200 COMMITTED Open Secure Socket Layer
    openssl.base 1.1.1.1200 COMMITTED Open Secure Socket Layer

    The only thing I notice is this install:

    Generating ed25519 key...
    ed25519 key generation failed
    sysck: 3001-022 The file /etc/ssh/ssh_host_ed25519_key
    was not found.
    sysck: 3001-022 The file /etc/ssh/ssh_host_ed25519_key.pub
    was not found.
    sysck: 3001-017 Errors were detected validating the files
    for package openssh.base.server.

    installp: The installation has FAILED for the "root" part
    of the following filesets:
    openssh.base.server 8.1.102.2105

    installp: Cleaning up software for:
    openssh.base.server 8.1.102.2105

    Filesets processed: 3 of 4 (Total time: 4 secs).

    installp: APPLYING software for:
    openssh.man.en_US 8.1.102.2105

    #lppchk -v
    lppchk: The following filesets need to be installed or corrected to bring
    the system to a consistent state:

    openssh.base.server 8.1.102.2105 (usr: COMMITTED, root: not installed)


    At IBM's request I even copied the /etc/ssh/sshd_config file from another server as it was missing. Still didn't resolve the issue.

    IBM said the /etc/ssh/sshd_config file should have been created with the reinstall of ssh.

    This is all that's created during the install of ssh:



    #ls -lt
    total 328
    -rw------- 1 root system 132839 Feb 24 15:59 moduli
    -rw-r--r-- 1 root system 1537 Feb 24 15:59 ssh_config
    -rw-r--r-- 1 root system 2945 Jul 21 2020 sshd_config
    -rw------- 1 root system 668 May 2 2017 ssh_host_dsa_key
    -rw-r--r-- 1 root system 590 May 2 2017 ssh_host_dsa_key.pub
    -rw------- 1 root system 227 May 2 2017 ssh_host_ecdsa_key
    -rw-r--r-- 1 root system 162 May 2 2017 ssh_host_ecdsa_key.pub
    -rw------- 1 root system 1679 May 2 2017 ssh_host_rsa_key
    -rw-r--r-- 1 root system 382 May 2 2017 ssh_host_rsa_key.pub

    Thanks.

    ------------------------------
    Steven Burkhart
    ------------------------------


  • 2.  RE: sshd Will not start

    Posted Sun March 06, 2022 07:56 PM
    Edited by Chris Gibson Sun March 06, 2022 07:56 PM
    Based on the lppchk output, it looks like the "openssh.base.server" fileset did not update/install successfully. You may need to attempt the update again or (if the update fails again) attempt to reinstall the fileset, i.e. select "OVERWRITE same or newer versions? = yes" in smit installp.

    ------------------------------
    CHRIS GIBSON
    ------------------------------



  • 3.  RE: sshd Will not start

    Posted Mon March 07, 2022 01:15 PM
    Resolved.

    Turned out to be an issue with LIBPATH.

    The /usr/lib path was added to $LIBPATH and that resolved the issue.

    #echo $LIBPATH
    /usr/lib

    Thanks.

    ------------------------------
    Steven Burkhart
    ------------------------------