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 ?
...
- 12-18-2010 #1Just Joined!
- Join Date
- Jan 2009
- Posts
- 63
Unable to ssh
I am trying to ssh to a remote machine, its giving the following error:
What could be the 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.
No one has changed the permission of bash.
- 12-20-2010 #2
Looks like your are trying to login as root.
Is root allowed to login via ssh?
- 12-20-2010 #3Just Joined!
- Join Date
- Jan 2009
- Posts
- 63
- 12-20-2010 #4Just Joined!
- Join Date
- Dec 2010
- Location
- India
- Posts
- 45
check the permission and owner of /bin/bash
its permission must be set to 755
- 12-20-2010 #5Just 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".
- 12-20-2010 #6Just 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.
- 12-20-2010 #7
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?
- 12-21-2010 #8
- 12-21-2010 #9
- 12-21-2010 #10Just Joined!
- Join Date
- Jan 2009
- Posts
- 63


Reply With Quote
