Solved

Issue with starting SSH in AIX 6.1

Posted on 2014-01-07
4
1,272 Views
Last Modified: 2014-03-10
I recently upgraded the openssl version on AIXX 6.1 server.

The install went fine.

But now I'm unable to start new ssh sessions from puty to the server and I'm getting the error "Connection Refused".

But I have one putty terminal open which is active.

I tried the command startsrc -s sshd and it returns a new pid but I'm not able to start new sessions.

I tried the following command too and it gives the foll error:

root:stud -> $ /usr/sbin/sshd -de
exec(): 0509-036 Cannot load program /usr/sbin/sshd because of the following errors:
        0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.0) could not be loaded.
        0509-152   Member libcrypto.so.0 is not found in archive

Open in new window

And sshd is inoperative.

root:stud -> $  lssrc -s sshd
Subsystem         Group            PID          Status
 sshd             ssh                           inoperative

Open in new window

How can I resolve this issue.
0
Comment
Question by:gaugeta
  • 2
4 Comments
 
LVL 4

Expert Comment

by:popesy
ID: 39764562
Hi

I've seen this when the version of openssl isn't the version sshd is expecting.

If you updated openssl perhaps the sshd needs updating too.

Check the versions and update if necessary.

Cheers

JP
0
 

Author Comment

by:gaugeta
ID: 39764724
@popesy: Thanks for the reply.

Before I had installed the same openssl package long time back and due to server crash everything got corrupted.

Previously when I installed this It has worked without installing any additional packages.

I'm not sure why this is occurring now on the same server when I try to install the same software I has successfully installed before.
0
 
LVL 4

Assisted Solution

by:popesy
popesy earned 250 total points
ID: 39767752
Ok,

Can you list out the files that  openssl thinks it has installed;

lslpp -f openssl.base

It should list out the libraries used too.

You can then see what is needed by your sshd;

dump -n `which sshd`| grep -p INDEX

The output, something like;

                        ***Import File Strings***
INDEX  PATH             BASE                MEMBER
0      /usr/lib:/lib
1                                    libc.a              shr.o
2                                    libcrypto.a    libcrypto.so.0.9.8
3                                    libz.a              libz.so.1
4                                    libpam.a        shr.o
5                                    libdl.a             shr.o

You can further investigate by locating the libcrypto you have installed, e.g.

find / -type f -name libcrypto.a -print

Check it thus;

ar -tv <full path to lib>

This may bring some clarity to the sshd failing

If there was corruption previously, it's possible that anomalies caused by this will fog stuff up.

See how you go.

Cheers, JP.
0
 
LVL 61

Accepted Solution

by:
gheist earned 250 total points
ID: 39777368
/lib:/usr/lib must be in libpath before /opt
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now