Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 17 of 17
Sorry, I guessed I missed that bit. Is this error message just coming from Putty? Have you tried logging in from a different ssh client, even from localhost?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848

    Sorry, I guessed I missed that bit. Is this error message just coming from Putty? Have you tried logging in from a different ssh client, even from localhost?
    Linux User #453176

  2. #12
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    Quote Originally Posted by bigtomrodney View Post
    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.
    Would MOTD be shown before the password is entered?
    Linux User #453176

  3. #13
    Just Joined!
    Join Date
    Jun 2009
    Posts
    23
    Quote Originally Posted by bigtomrodney View Post
    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.
    Code:
    # cat /etc/motd
    # cat /etc/banner
    cat: /etc/banner: No such file or directory
    Code:
    login as: root
    Access denied
    root@hostname's password:
    Last login: ...
    #
    (Small point, text is "Access denied")

    Nice try!

  4. #14
    Just Joined!
    Join Date
    Jun 2009
    Posts
    23
    Quote Originally Posted by Kieren View Post
    Sorry, I guessed I missed that bit. Is this error message just coming from Putty? Have you tried logging in from a different ssh client, even from localhost?
    If I login via a an Putty shell already SSH'd into a different host,
    ie Putty SSH into HostA
    1. Windows launch Putty
    2. Get "login as:" prompt
    3. enter "root", enter
    4. "Access denied" displayed"
    5. prompted for password, type in and press enter.
    6. date displayed and am in.

    Now from that putty ssh shell open (above)
    1. type "ssh HostB"
    2. date displayed, and am straight in!

    Clearer?

  5. #15
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    I understand how you're connecting, I'm just trying to figure out if the "Access denied" message is coming from RedHat or if it's an error with Putty. Are there any error logs on Putty that provide more information?

    What I was trying to get you to do is after step 6 above try connecting to localhost and see if you get the same message:

    Code:
    ssh localhost
    Linux User #453176

  6. #16
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    Quote Originally Posted by Kieren View Post
    Would MOTD be shown before the password is entered?
    Fair point, I think I missed the mark on this one

  7. #17
    Just Joined!
    Join Date
    Jun 2009
    Posts
    23
    I've still not solved this, I dont think I've answered all the replies posted yet, so sorry about that, and thanks.
    But I was looking into SSHing in general, and found this info I wanted logged :-

    In the "/etc/init.d/sshd"
    There is the "Banner" setting

    If set to a file with the text "My SSH Banner" in, I get

    Code:
    login as: root
    My SSH Banner
    Access denied
    So still get the access denied, but its after the Banner!
    Will look into this access denied issue more later!

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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