SSH login problem


 
Thread Tools Search this Thread
Operating Systems AIX SSH login problem
# 1  
Old 10-21-2008
SSH login problem

The problem is to login with non-root users. This is the error:

Code:
[root@srv1 root]# ssh -l roberto srv2.domain.net
roberto@srv2.domain.net's password:
Last login: Tue Oct 21 09:39:35 DFT 2008 on /dev/pts/1 from 192.168.2.25
*******************************************************************************
*                                                                             *
*                                                                             *
*  Welcome to AIX Version 5.3!                                                *
*                                                                             *
*                                                                             *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                             *
*                                                                             *
*******************************************************************************
getuserattr failed
Connection to srv2.domain.net closed.

With root I can normally login. What can be the problem?

On srv2 ssh version is:

Code:
bash-2.05a# ssh -V
OpenSSH_4.5p1, OpenSSL 0.9.8d 28 Sep 2006

# 2  
Old 10-21-2008
Quote:
Originally Posted by untamed
The problem is to login with non-root users. This is the error:

Code:
[...]
getuserattr failed
[...]

With root I can normally login. What can be the problem?
The getuserattr subroutine accesses the following files. Use root to check whether all permissions are correct. Sample from a 5.3 AIX server:
Code:
-rw-r--r--    1 root     security        699 Oct 21 17:13 /etc/passwd
-rw-r--r--    1 root     security        415 Oct 21 17:12 /etc/group
-rw-r--r--    1 root     system        10546 Oct 21 17:12 /etc/security/user
-rw-r-----    1 root     security       1346 Apr 01 2008  /etc/security/limits
-rw-r-----    1 root     security        531 Oct 09 17:46 /etc/security/group
-rw-r-----    1 root     security         60 May 07 2007  /etc/security/environ

# 3  
Old 10-21-2008
Code:
bash-2.05a# ls -l /etc/passwd /etc/group /etc/security/user /etc/security/limits /etc/security/group /etc/security/environ
-rw-r--r--   1 root     security        735 Oct 21 09:37 /etc/group
-rw-r--r--   1 root     security       1838 Oct 21 09:37 /etc/passwd
-rw-r-----   1 root     security         60 Jun 21 2004  /etc/security/environ
-rw-r-----   1 root     security        649 Apr 23 2008  /etc/security/group
-rw-r-----   1 root     security       1462 Apr 05 2007  /etc/security/limits
-rw-r--r--   1 root     system        10943 Oct 21 09:37 /etc/security/user

permissions are the same... Smilie
# 4  
Old 10-21-2008
How did you install the SSH software (bff package via installp or tarball) ?

How did you start the sshd (directly or via startsrc)?

bakunin
# 5  
Old 10-21-2008
Code:
bash-2.05a# lslpp -l openss*
  Fileset                      Level  State      Description
  ----------------------------------------------------------------------------
Path: /usr/lib/objrepos
  openssh.base.client     4.5.0.5302  COMMITTED  Open Secure Shell Commands
  openssh.base.server     4.5.0.5302  COMMITTED  Open Secure Shell Server
  openssh.license         4.5.0.5302  COMMITTED  Open Secure Shell License
  openssh.man.en_US       4.5.0.5302  COMMITTED  Open Secure Shell
                                                 Documentation - U.S. English
  openssh.msg.en_US       4.5.0.5302  COMMITTED  Open Secure Shell Messages -
                                                 U.S. English
  openssl.base             0.9.8.410  COMMITTED  Open Secure Socket Layer
  openssl.license          0.9.8.410  COMMITTED  Open Secure Socket License
  openssl.man.en_US        0.9.8.410  COMMITTED  Open Secure Socket Layer

Path: /etc/objrepos
  openssh.base.client     4.5.0.5302  COMMITTED  Open Secure Shell Commands
  openssh.base.server     4.5.0.5302  COMMITTED  Open Secure Shell Server
  openssl.base             0.9.8.410  COMMITTED  Open Secure Socket Layer

I think the service starts via startsrc as is defined into /etc/services. How can I verify that?
# 6  
Old 10-21-2008
Quote:
Originally Posted by untamed
I think the service starts via startsrc as is defined into /etc/services. How can I verify that?
/etc/services is something completely different. You can check by issuing

lssrc -a | grep ssh

If you get nothing the sshd was probably started by other (non-AIX) means and should be corrected. If you get a line similar to this:

Code:
bakunin@server# lssrc -a | grep ssh
 sshd             ssh              249928       active

The subserver has been started by SRC (system resource controller) means as it should be.

I hope this helps.

bakunin
# 7  
Old 10-21-2008
Code:
bash-2.05a# lssrc -a | grep ssh
 sshd             ssh              344234       active

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Ssh public/private key user login problem

I have a user account configuration with ssh public/private key that works on multiple servers centos and rhel. One server (Server F) that is not working in centos 6.8. When i ssh into server f I get prompted for a password. I have verified the config and it all is good. I put sshd into debug... (8 Replies)
Discussion started by: bash_in_my_head
8 Replies

2. Shell Programming and Scripting

Getting ssh to try login only once

spawn ssh remotehost -l skysmart when the password is incorrect, this will attempt to log in 2 more times, before it exits. is there an option I can pass to ssh that'll make it try only once and will then abort immediately if the password is incorrect? something like: spawn ssh... (1 Reply)
Discussion started by: SkySmart
1 Replies

3. Solaris

Problem with ssh login without password

Hello friends, I have the problem with password less login in solaris 10. Issue : In solaris 10 I have 2 different users on is oracle and the other is archmon. when I try to ssh to the other server from oracle it is successful but when I try to ssh from archmon it fails, and it asks for the... (1 Reply)
Discussion started by: Pavankrv
1 Replies

4. Red Hat

ssh problem could not login

Dear all, I have unknowingly deleted openssh-server on one of my linux boxes... So I could not do ssh in to this machine and also could not scp to it. Now I need to copy and install openssh-server in this box.. How could I do as both ssh and scp is not working. Even FTP is also... (1 Reply)
Discussion started by: jegaraman
1 Replies

5. Shell Programming and Scripting

ssh login

Hi, I am trying to login Server2 from server1 in a shell script and need to perfrom few commands, Below is the command i used to login to server2 from server1 ssh -l username server2 However everytime it executes it asking for password. How do write a script in such way it takes... (1 Reply)
Discussion started by: ch33ry
1 Replies

6. HP-UX

telnet login successful ,but ssh can not login

why I can login by telnet using root account but when i use login by ssh using root account it is not successful ,is it different password i am sure ssh service is started (2 Replies)
Discussion started by: alert0919
2 Replies

7. Linux

Login Problem SSH/FTP

Hi I have a VPS with CentOS 5 installed and Kloxo v-6.1.4 as CP Suddenly I am not able to login FTP and SSH On FTP client I get the error: Could not connect to server And On Putty Server unexpectedly closed the network connection I have checked the /var/log/secure and /var/log/messages... (1 Reply)
Discussion started by: rizwan65
1 Replies

8. HP-UX

ssh login problem in hp-ux

Hi Everyone.. User is not able to login using ssh whereas using telnet he is able to login in hp-ux. I checked for ssh configuration file but it is not configured for denying any user access. What could be the problem? user is not allowed to use telnet. Thanks. Laxmikant (3 Replies)
Discussion started by: laxmikant
3 Replies

9. UNIX for Dummies Questions & Answers

help with ssh login

hi, i have red hat RHEL-5 on my machine, i ma trying to ssh login on remote machine root@localhost~]# ssh ip_address(of remote machine) it works fine if i know the password, i use wireless network so the ip keeps on changing,so is there any way to access the machine with some unique name, which... (1 Reply)
Discussion started by: ankita tux
1 Replies

10. UNIX for Advanced & Expert Users

SSH remote login problem

Hi: I have been given the responsibility of administering AIX 3.1 machine in my lab recently. And, I am having trouble logging on to the machine using SSH through windous systems. Thus, now no one is able to access it!! The following error message is displayed when I tried to login: "The... (3 Replies)
Discussion started by: pdepa
3 Replies
Login or Register to Ask a Question