Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21
I am trying to ssh to a remote machine, its giving the following error: PHP Code: #ssh 192.168.0.11 root @ 192.168.0.11 's password:  Last login: Sat Dec 18 11:11:47 2010 from 192.168.0.100 /bin/bash: Permission denied Connection to 192.168.0.11 closed.  What could be the error ? ...
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    63

    Unable to ssh

    I am trying to ssh to a remote machine, its giving the following error:

    PHP Code:
    #ssh 192.168.0.11
    root@192.168.0.11's password: 
    Last login: Sat Dec 18 11:11:47 2010 from 192.168.0.100
    /bin/bash: Permission denied
    Connection to 192.168.0.11 closed. 
    What could be the error ?
    No one has changed the permission of bash.

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Looks like your are trying to login as root.
    Is root allowed to login via ssh?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    Jan 2009
    Posts
    63
    Quote Originally Posted by Lazydog View Post
    Looks like your are trying to login as root.
    Is root allowed to login via ssh?
    Yes ,same problem happens when login as other users also and root is allowd to do so.

  4. #4
    Just Joined!
    Join Date
    Dec 2010
    Location
    India
    Posts
    45
    check the permission and owner of /bin/bash
    its permission must be set to 755

  5. #5
    Just Joined!
    Join Date
    Dec 2010
    Location
    India
    Posts
    45
    ans root ssh can be done provided
    In the /etc/ssh/sshd_config file "PermitRootLogin" is set to "yes".

  6. #6
    Just Joined!
    Join Date
    Dec 2010
    Posts
    9
    Well, I guess you need to specify the port number of the remote machine if you are trying to access the root.

  7. #7
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Quote Originally Posted by divyashree View Post
    Yes ,same problem happens when login as other users also and root is allowd to do so.
    Can you physically go to the machine in question and login? If yes then log into that machine and attempt to ssh to itself. If the system's IP is 192.168.1.1 then 'ssh 192.168.1.1'. Are you able to login?

    What does the line in sshd_config for PermitRootLogin look like?

    How about for another system? Are you able to login from another system?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  8. #8
    Just Joined!
    Join Date
    Jan 2009
    Posts
    63
    Quote Originally Posted by Piyu_86 View Post
    check the permission and owner of /bin/bash
    its permission must be set to 755
    Yes the permission is 775 .

  9. #9
    Just Joined!
    Join Date
    Jan 2009
    Posts
    63
    Quote Originally Posted by Piyu_86 View Post
    ans root ssh can be done provided
    In the /etc/ssh/sshd_config file "PermitRootLogin" is set to "yes".
    Yes it's set to yes.

  10. #10
    Just Joined!
    Join Date
    Jan 2009
    Posts
    63
    Quote Originally Posted by Lazydog View Post
    Can you physically go to the machine in question and login? If yes then log into that machine and attempt to ssh to itself. If the system's IP is 192.168.1.1 then 'ssh 192.168.1.1'. Are you able to login?

    What does the line in sshd_config for PermitRootLogin look like?

    How about for another system? Are you able to login from another system?
    No I am unable to login to the localhost,the localip 192.168.0.11 but able to login to remote host from that machine.

Page 1 of 3 1 2 3 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
  •  
...