Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 01-12-2007, 06:02 AM   #1
LQ Newbie
Registered: Mar 2005
Posts: 3

Rep: Reputation: 0
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?

Old 01-12-2007, 06:25 AM   #2
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 31
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
Old 01-12-2007, 06:41 AM   #3
LQ Newbie
Registered: Mar 2005
Posts: 3

Original Poster
Rep: Reputation: 0

/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!!!!
Old 01-15-2007, 09:47 PM   #4
Registered: Jul 2006
Distribution: RHEL, CentOS, PuppyLinux, SuSe, Ubuntu, Debian
Posts: 59

Rep: Reputation: 15
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh -- Permission denied (publickey,password,keyboard-interactive). davidkline Linux - Networking 11 08-20-2014 02:19 PM
ssh -Permission denied zaphod_es Linux - Networking 4 05-21-2006 01:56 PM
SSH permission denied on Mandriva 2006 EvilAngel Mandriva 7 03-23-2006 10:44 PM
ssh login with normal user, receive: /dev/null: Permission denied mark78301 Red Hat 3 11-12-2005 09:20 AM
SSH Permission Denied Chimney Linux - Security 1 11-10-2005 06:01 PM

All times are GMT -5. The time now is 05:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration