Server Management - Systems Insight Manager
1833016 Members
2446 Online
110048 Solutions
New Discussion

Re: SSh Authentication Failed

 
Ray Bell
Regular Advisor

SSh Authentication Failed

I have check the /opt/ssh/etc/sshd_config and the user root have access to ssh and it's not at the bootom of the file to be deny login right. So not sure why the operation I was doing failed when I try to run the security patch tool on the node. I have 38 systems and was only successful on 12 of them.

The error message I get is:
Ssh Operation failed for node:xxxxx. SshAuthentication Failed.

Anyway any assistance would be great.
6 REPLIES 6
LukaS_9
Regular Advisor

Re: SSh Authentication Failed

Hi Ray,
Probably I've got the solution for you!!!
The problem is the grant of root directory that is too high.
Check if you got 777 (ls / -ld). If yes you have to change it to 755 or less (this is also a security hole).
We had the same problem and we solve it with this workaround.

regards
Luca
Ray Bell
Regular Advisor

Re: SSh Authentication Failed

I cd to / and ran the command ls -ld and it came back with the following:

drwxr-xr-x 27 root root 8192 Oct 27 15:34 .

So it has the 755 permission.
LukaS_9
Regular Advisor

Re: SSh Authentication Failed

Ops...I was too much optimist :)
Have you tried to restart ssh?
/sbin/init.d/secsh stop
/sbin/init.d/secsh start

If after this you still have the same problem, try to reconfigure ssh from Options-->Protocol Settings-->Global Protocol Settings...

A little trick: to check if ssh work, select the system and execute the command:
Tools-->Command Line Tools-->Unix/Linux-->ls...-->Next-->Run now

regards
Luca

Todd Schelin
Valued Contributor

Re: SSh Authentication Failed

I have the exact same problem. I cannot get any system to work with SSH. I have ran the mxagentconfig -a -n -u -p against the host and it is successful. Then I run mxagentconfig -c -n -u and it reports success. But if I run any command initiated from HP SIM I get "Ssh Operation failed for node:myhost.com. SshAuthentication Failed." everytime.

This has worked before, but not anymore. This is SIM 5.0.2 running on a Windows 2003 OS. The host is also Windows 2003.
Ray Bell
Regular Advisor

Re: SSh Authentication Failed

I was able to find out the problem. In my /opt/ssh/etc/sshd_config file I need to uncomment out the line:

HostbasedAuthentication yes

After i di that then now the servers are now working. I still have a problem with a few but I will find them out later. Anyway thanks to everyone who gave advice.
michel obi
New Member

Re: SSh Authentication Failed

I have attarched a file I named OpenSSH secret to help you to solve the problem.
For the person that tried to execute a custom
tool through HP-SIM Server,it would work for Window Servers if you are using Administrator as an account name but it will not work for linux Servers. You have to define explicitly a root account or an account that have full access in that linux machine.Read the attarched document and i hope it will help you.
Keep your Heads up guys.
Iyke