LinuxQuestions.org
Visit Jeremy's Blog.
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 02-02-2012, 05:04 PM   #1
zeeper
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Rep: Reputation: Disabled
SSH authentication Failure


I am running RHEL with SSH Server configured for remote access.
Recently when I tried to login from MAC terminal, I got error "too many authentication failure for user abcd@abcd-system : disonnected"
however, when I login using same prefrences from windows using Putty, It works fine.
for both cases I am using password for login, not keys..! so increasing no. of authentication tries wont work....
I am stuck, Please help me out of this
Thanks In advance.
 
Old 02-02-2012, 05:50 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
On the RHEL server, what does /var/log/secure say about the failures?
 
Old 02-03-2012, 02:30 AM   #3
zeeper
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
when I login from MAC terminal /var/log/secure says:
"Feb 2 09:43:56 adcd-system sshd[1737]: Disconnecting: Too many authentication failures for abcd"
but after that when I connected using Putty terminal, it says:
"Feb 2 09:47:39 abcd-system sshd[1740]: Accepted password for abcd from 192.168.22.200 port 5130 ssh2
Feb 2 09:47:39 abcd-system sshd[1740]: pam_unix(sshd:session): session opened for user abcd by (uid=0)"
 
Old 02-03-2012, 10:22 AM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
When you say "MAC terminal", are you referring to the OSX Terminal app?

If so, it sounds like you may have configured it to automatically log in as the user (and with the wrong password).
 
Old 02-03-2012, 10:38 AM   #5
zeeper
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Yes I am using OSX terminal app.
Quote:
Originally Posted by anomie View Post
When you say "MAC terminal", are you referring to the OSX Terminal app?

If so, it sounds like you may have configured it to automatically log in as the user (and with the wrong password).
I do not know if had mistakenly configured it for automatic login with username and password ....
How to fix it now...!besides, I write the ssh command with username to connect

when I login, connection dies even does not ask for password ....saying 'too many authentication failures':session closed.
I have also set the RHEL ssh server to accept login attempt using password only.
Still the same problem.

Last edited by zeeper; 02-03-2012 at 03:10 PM.
 
Old 02-06-2012, 09:35 AM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by zeeper
for both cases I am using password for login, not keys..! so increasing no. of authentication tries wont work.
Stepping back a moment to this comment -- I don't follow your logic here. What do you currently have MaxAuthTries set to in sshd_config(5)?
 
Old 02-06-2012, 10:10 AM   #7
zeeper
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by anomie View Post
Stepping back a moment to this comment -- I don't follow your logic here. What do you currently have MaxAuthTries set to in sshd_config(5)?
although It was set to default value earlier but now I have commented 'MaxAuthTries' in sshd_config
but still unable to login

Last edited by zeeper; 02-06-2012 at 10:21 AM.
 
Old 02-06-2012, 10:49 AM   #8
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
For grins, on the client side try:
Code:
$ ssh -o 'PasswordAuthentication yes' user@host_here
 
Old 02-07-2012, 02:25 AM   #9
zeeper
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by anomie View Post
For grins, on the client side try:
Code:
$ ssh -o 'PasswordAuthentication yes' user@host_here
Still the same problem, too many authentication failures....
 
Old 02-08-2012, 11:07 AM   #10
zeeper
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
I have solved my problem by running the command in Verbose mode
ssh -v -p abcd@abcd-system
verbose output helped me isolate the problem....
Thanks
 
Old 02-08-2012, 04:52 PM   #11
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
And the problem and its solution was...?
 
Old 02-09-2012, 03:22 AM   #12
zeeper
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by anomie View Post
And the problem and its solution was...?
the problem was my SSH agent not presenting the appropriate key for authentication, so after number of tries,when it does not get the desired key it returns error 'too many authentication failures'..
well this is awkward but all the way it is fixed
 
1 members found this post helpful.
Old 04-24-2013, 01:58 AM   #13
venkatkoorapati
LQ Newbie
 
Registered: Mar 2011
Posts: 4
Blog Entries: 2

Rep: Reputation: 1
too many authentication failures for user sftp

i am also facing same issue please provide the solution
 
  


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
configure ssh authentication using password file and sftp/scp authentication using ld cameliab Linux - Software 1 08-29-2011 03:28 AM
Authentication Failure benc1213 Linux - Networking 2 08-29-2011 12:31 AM
Chage / SSH Authentication Failure deadbolt67 Linux - Newbie 1 08-15-2011 12:47 PM
SSH Key based authentication failure kdheepan Linux - Newbie 2 06-08-2011 07:55 AM
authentication failure mendiratta Linux - Security 1 07-03-2004 03:20 AM


All times are GMT -5. The time now is 02:42 AM.

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