LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   SSH: Permission denied, please try again. (https://www.linuxquestions.org/questions/linux-security-4/ssh-permission-denied-please-try-again-518621/)

sanatox 01-12-2007 06:02 AM

SSH: Permission denied, please try again.
 
Hi all,

i'm having problems with ssh. I have many hosts in a private subnet, and all this hosts have to access a host with a public IP outside the subnet. i've done the correct forwarding in a PC-router which is the default gateway. Every host in the subnet can access the other host with public IP with ping command.

The problem is that some host can do ssh to that public IP properly, but other host, after enter the correct password cannot access the machine:
root@xxx's password:
Permission denied, please try again.
what do you think is goig on?

Thanks!!!

avallach 01-12-2007 06:25 AM

Check in /etc/ssh/sshd_config if you got PermitRootLogin yes
But remember it is not to safe. It is better to login as normal user and then use su :)

sanatox 01-12-2007 06:41 AM

/etc/ssh/sshd_config is all comented, but like i said before, from some machines i can login as root via ssh and from others i cannot. maybe a problem with pam? i don't know what to do!!!! :(

osdeals 01-15-2007 09:47 PM

Not a problem with PAM. If you had a problem with PAM, _none_ of the hosts would be able to login.

Not a problem with the firewall / port forwarding. In either case you wouldn't get the login prompt either.

Have you checked if you can login as a different user from these hosts?


All times are GMT -5. The time now is 07:16 AM.