1753865 Members
7585 Online
108809 Solutions
New Discussion

Open SSH Issue

 
Vengat
Advisor

Open SSH Issue

Hi Team ,

 

   I have installed Openssh recently , and i unable to start open sshd daemon

 

# whoami

root

# /usr/local/sbin/sshd

sh: /usr/local/sbin/sshd: Execute permission denied.

# cd /usr/local/sbin/

# ls -al

 total 2800

drwxr-xr-x   2 root       sys             96 Apr 24 10:17 .

dr-xr-xr-x  15 bin        bin           8192 Apr 24 10:17 ..

-rwxr-xr-x   1 root       sys        1424936 Sep  8  2011 sshd

 

 # uname -a HP-UX maa1devh B.11.31 U 9000/800 3658168467 unlimited-user license

 

Kinldly provide the solution

5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: Open SSH Issue

What does this show: file /usr/local/sbin/sshd

 

You may have an Integrity version instead of PA.

Ajin_1
Valued Contributor

Re: Open SSH Issue

Hi change the permission sys to root and check

 

-rwxr-xr-x 1 root root

Thanks & Regards
Ajin.S
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Dennis Handly
Acclaimed Contributor

Re: Open SSH Issue (Execute permission denied)

>change the permission sys to root and check

 

Why do you think changing the ownership will affect permission in this case?

There is no SUID nor SGID.

Matti_Kurkela
Honored Contributor

Re: Open SSH Issue (Execute permission denied)

If "file /usr/local/sbin/sshd" indicates the binary architecture is correct, then check the library dependencies:

ldd /usr/local/sbin/sshd

 If the ldd command lists any libraries as "not found", the binary cannot be executed because some of its library pre-requisites are missing.

MK
Dennis Handly
Acclaimed Contributor

Re: Open SSH Issue (Execute permission denied)

>If "file /usr/local/sbin/sshd" indicates the binary architecture is correct,

 

This is not likely.  You get a different error if a shlib is missing.

If it has the wrong architecture, you get:

/usr/lib/pa20_64/dld.sl: .../libfoo.x is not a valid load module: bad machine type

(At least for PA64.)