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, 07: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, 07: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: 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, 07: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, 10: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 11 08-20-2014 03:19 PM
ssh -Permission denied zaphod_es Linux - Networking 4 05-21-2006 02:56 PM
SSH permission denied on Mandriva 2006 EvilAngel Mandriva 7 03-23-2006 11:44 PM
ssh login with normal user, receive: /dev/null: Permission denied mark78301 Red Hat 3 11-12-2005 10:20 AM
SSH Permission Denied Chimney Linux - Security 1 11-10-2005 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:44 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration