LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 01-12-2007, 06:02 AM   #1
sanatox
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?

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

Rep: Reputation: 30
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
sanatox
LQ Newbie
 
Registered: Mar 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Unhappy

/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
osdeals
Member
 
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?
 
  


Reply


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 10 05-07-2012 12:16 AM
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 07:06 PM.

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