Re: odd ssh problem.

From: Nigel Stepp (stepp_at_atistar.net)
Date: 07/24/03

  • Next message: Stephen Reese: "redhat7.3 login ?"
    Date: Wed, 23 Jul 2003 23:56:32 -0400 (EDT)
    To: Jonathan Crowe <jcrowe@sagesys.net>
    
    

    On Wed, 23 Jul 2003, Jonathan Crowe wrote:

    >
    > I have an odd SSH problem.
    > I have a server with a stock RH 9 install on it (just installed
    > yesterday). I am able to SSH to it as both remotely and locally as root
    > but not as any normal user.
    >
    > This is the case with both a password login and a public key login.
    >
    > From looking at /var/log/messages and /var/log/secure it appears that
    > the system is accepting the login and then disconnecting right away.
    >
    > These users are able to log in from the console and I am able to su - to
    > them as root or as another user with no problems. I am stumped as to
    > what is going on here. Does anyone have any ideas?
    >

    I would probably run strace, ptrace, or some other utility on sshd to try
    to see what is happening between the time authentication is successful,
    and when the connection is closed. Some system call may be failing
    without an error.

    Do you use PAM? If so, I would check your PAM comfiguration as well. I
    have had odd authentication problems (not with ssh) that were because of
    misconfigured files in /etc/pam.d/. I hear that these are especially
    likely on Redhat.

    [snip debug and system info]
    >
    > --
    > Jonathan Crowe
    > System Administrator
    > for Sage Systems, Inc.
    > 425-451-2484 x 3025
    >

    -- 
    Nigel Stepp
    :wq
    

  • Next message: Stephen Reese: "redhat7.3 login ?"

    Relevant Pages

    • Re: SSH login automation, get stuck at the last step.
      ... The ssh server that I am copying the public key to is not a typical ... The user "root" to login this box can not access the ... puts stderr "EXP username requested and sent " ...
      (comp.lang.tcl)
    • SUMMARY: how to set correct path?
      ... ven if we login with ssh. ... For BASH login shell, place the system wide ENV variables, such as PATH, ... You can set Use_login in the sshd_config to yes and restart sshd. ...
      (SunManagers)
    • Re: ssh brute force attacks
      ... What you are most likely seeing are SSH worms on hacked PCs that scan ... -- use a separate username/password for SSH access, ... -- enforce more complex usernames & passwords for all users on the server ... Instead require the user to login as a non-root user first, ...
      (comp.os.linux.misc)
    • Re: Authentication with SSH using public keys
      ... I use ssh to login remotely. ... there looks odd, or different, from other remote hosts I do this on. ... The permissions on the machine where it doesn't work: ...
      (freebsd-questions)
    • Public Authentication Problem on Batch Job using SCP2 when SSH Client Reboot
      ... to a SSH server, HOST2. ... for secure ftp login. ... The login ID is a local user account ... we found that scp2 run failed every time the SSH client ...
      (comp.security.ssh)