Integrity Servers
1823420 Members
2559 Online
109655 Solutions
New Discussion

SSH root login on HPUX 11.31

 
robaflx
Frequent Visitor

SSH root login on HPUX 11.31

Hi all

I've got the same problem as discribed in the following post but with no solution: https://community.hpe.com/t5/System-Administration/Direct-Root-Login/td-p/5226502

I tried already all suggestions without any luck.
I have 2 machines, on one where's working and the other it isn't.
The working machine is the host itself, set-up using DVDs and the other is a vPar which hast been set-up using ignite from the host machine. 

/opt/ssh/etc/sshd_config

PermitRootLogin yes

UsePAM yes
May 18 08:20:58 <hostanme> sshd[4020]: error: PAM: Authentication failed for root from X.X.X.X

UsePAM no
May 18 08:30:26 <hostname> sshd[4141]: Failed password for root from X.X.X.X port 58101 ssh2


Any advice?

Thanks



5 REPLIES 5
support_s
System Recommended

Query: SSH root login on HPUX 11.31

System recommended content:

1. HP-UX 11.31 - Root and Users Are Not Able to Login via SSH

2. HP-UX-11.31 - How to Disable Root Login for SSH

 

Please click on "Thumbs Up/Kudo" icon to give a "Kudo".

 

Thank you for being a HPE valuable community member.


Accept or Kudo

georgek_1
HPE Pro

Re: SSH root login on HPUX 11.31

Hello robaflx,

 

You may try su root after login to server as normal user and see if OS allows login root user .
Other option could be change the entry UsePAM yes to UsePAM no (after taking backup of current sshd_config), restart sshd and see if that helps .

 

I am an HPE Employee (HPE Community)



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
robaflx
Frequent Visitor

Re: SSH root login on HPUX 11.31

Hi georgek

Changing to root user works without any problem. I just can't login via SSH. 
Disabling PAM gives me the following error:

UsePAM=no
May 18 08:30:26 <hostname> sshd[4141]: Failed password for root from X.X.X.X port 58101 ssh2

Thanks

georgek_1
HPE Pro

Re: SSH root login on HPUX 11.31

Hello robaflx,

 

You may try debug the ssh session using # ssh -vvv root@server_name), which would give you more details on where it is failing and fix the same .

 

I am an HPE Employee (HPE Community)

 

 



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
robaflx
Frequent Visitor

Re: SSH root login on HPUX 11.31

@georgek_1 

Hi georgek_1

I don't get more inforrmation with the debug option enabled. 

Loging as normal user

debug3: authmethod_is_enabled password
debug1: Next authentication method: password
normaluser@X.X.X.X's password:
debug3: packet_send2: adding 64 (len 59 padlen 5 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
Authenticated to X.X.X.X ([X.X.X.X]:22).

 


Loging in as root

debug3: authmethod_is_enabled password
debug1: Next authentication method: password
root@X.X.X.X's password:
debug3: packet_send2: adding 64 (len 59 padlen 5 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,password,keyboard-interactive
Permission denied, please try again.
root@X.X.X.X's password:

Any other suggestions?

Thanks