LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-25-2011, 05:06 PM   #1
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
Nasty problem with SSH login procedure


Hi,

I'm stumped by this (and how I might have done it). On my Fedora 15 server, now whenever I login (even with root user) after I type my username I get an "Access Denied" message, but then I can enter my password and login normally. This happens with both root and regular users. Where in the login procedure, could the problem lie?

Example: -

Code:
login as: tom
Access denied
tom@192.168.1.3's password:

[tom@localhost ~]$
It's really annoying. How can I fix this? Thanks.
 
Old 08-25-2011, 05:15 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
You may have another authentication method set up (keys?) that is failing and then ssh falls back to password auth. Have you tried ssh -v (you can use it up to 3 times on the command line to get more info, e.g. -v -v -v) to generate some messages during the login process?
 
Old 08-25-2011, 05:28 PM   #3
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Original Poster
Rep: Reputation: 61
A bit more info...

I ssh'd in from another Linux host on my network (rather than using Windows and Putty SSH client) and got this when logging in: -

Code:
[tom@somehost ~]$ ssh 192.168.1.3
Address 192.168.1.3 maps to anotherhost, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
tom@192.168.1.3's password: 

[tom@anotherhost ~]$
Huh? Do I have to clear known hosts or something?
 
Old 08-25-2011, 05:47 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
It's telling you that when it does a reverse DNS lookup on 192.168.1.3, it gets anotherhost, but when it does a DNS lookup on anotherhost, it does not get 192.168.1.3. It's not about the known hosts. As far as I know, you either have to get the DNS entry fixed, or live with the error. Are you running your own DNS server?
 
Old 08-26-2011, 06:18 AM   #5
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Original Poster
Rep: Reputation: 61
No - this only happens on my internal network though. Weird. Perhaps I've a stray /etc/hosts file somewhere?
 
Old 08-26-2011, 03:27 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
Could be. On the box you get the error (the ssh client box) can you try the following commands?
Code:
host 192.168.1.3
dig anotherhost
If they don't point to each other, try adding this entry to that box's /etc/hosts file and then trying the commands again:
Code:
192.168.1.3    anotherhost.your.domain  anotherhost
 
  


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
[SOLVED] Console login procedure chetan_linux Solaris / OpenSolaris 5 07-25-2011 11:31 PM
[SOLVED] SSH login problem for additional users after password-less login setup uncle-c Linux - Newbie 3 02-10-2010 12:51 PM
SSH Problem - Can't login using Hostname, can login using ip address jqweezy Linux - Networking 7 01-26-2009 02:21 PM
"Have to automate the SSH login procedure through shell scripting" sorav Programming 2 11-21-2007 04:53 AM
modify login procedure in linux nikhilstar Linux - General 2 05-02-2005 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:00 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration