Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
I can SSH into my RHEL box, but get an "Access denied" error :- login as: root Access denied root 192.168.0.10's password: Last login:..... # So, I can SSH in, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    23

    ssh access denied putty


    I can SSH into my RHEL box, but get an "Access denied" error :-

    login as: root
    Access denied
    root 192.168.0.10's password:
    Last login:.....
    #
    So, I can SSH in, but it always prints the Access denied!? Why?

  2. #2
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    Ssh usually doesn't allow access to root user for security. You will need to log in as a normal user and then access root using su
    Linux User #453176

  3. #3
    Just Joined!
    Join Date
    Jun 2009
    Posts
    23
    Quote Originally Posted by Kieren View Post
    Ssh usually doesn't allow access to root user for security. You will need to log in as a normal user and then access root using su
    "Doesnt usually", but I do successfully login, albeit with an error message displayed, I am still logging in ok.

    So how can I get rid of the message, and allow root to SSH in.

  4. #4
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    Linux User #453176

  5. #5
    Just Joined!
    Join Date
    Jun 2009
    Posts
    23
    Quote Originally Posted by Kieren View Post
    A quick Google will show you how to:
    How do I enable root login with ssh? :: Free Tech Support :: Ask Dave Taylor![/url]
    Done that, restarted host, still get "Access denied"! (But still login)

    Without this set, I can still login as root! BAD?

    (I will be creating user accounts BTW! one day)

  6. #6
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    To restart sshd I would use the command:

    Code:
    /etc/init.d/ssh restart
    Rather than the way Dave Taylor has suggested.

    Anyway, if you're going to be adding users later I would suggest doing that now rather than allowing access to root as by doing that you're making your system less secure.
    Linux User #453176

  7. #7
    Just Joined!
    Join Date
    Jun 2009
    Posts
    23
    Quote Originally Posted by Kieren View Post
    To restart sshd I would use the command:

    Code:
    /etc/init.d/ssh restart
    Rather than the way Dave Taylor has suggested.

    Anyway, if you're going to be adding users later I would suggest doing that now rather than allowing access to root as by doing that you're making your system less secure.
    1. Agree with the "service sshd restart" for me (RHEL).
    2. While I "will" be creating user accounts, it doesnt retract from trying to understand why im getting this error message.
    If I could solve this, then I know more, rather than just bypassing it! (im not have a go!)

  8. #8
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    Then there are different reasons why root access is being denied. You can look on RedHat's manual. They are showing how to block it so just do the oposite of what they suggest:

    Administrative Controls
    Linux User #453176

  9. #9
    Just Joined!
    Join Date
    Jun 2009
    Posts
    23
    Quote Originally Posted by Kieren View Post
    Then there are different reasons why root access is being denied. You can look on RedHat's manual. They are showing how to block it so just do the oposite of what they suggest:
    But the key point here, of which I thought I made clear, is that root access IS NOT BEING DENIED, but it just states that!
    Ie it just prints that, and I can continue and successfully login as root!!!

  10. #10
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,132
    Quote Originally Posted by IanVaughan View Post
    But the key point here, of which I thought I made clear, is that root access IS NOT BEING DENIED, but it just states that!
    Ie it just prints that, and I can continue and successfully login as root!!!
    That looks like your message of the day. Had you played with that at all? Check /etc/motd and /etc/banner files, see if either contains the "Access is denied" message.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •