LinuxQuestions.org
Help answer threads with 0 replies.
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 05-05-2011, 09:40 AM   #1
faheem205
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: 0
problem signing in to ssh


Hi
I generated public /private keys for passwordless entry to server using the following link..
http://www.debian-administration.org/articles/152
Now when i try to log in ssh still asks for my password and even I give correct pwd it still does not allow me.
I get following error message
-----------
Invalid user <user> from <myIpAddress>
input_userauth_request: invalid user <user>
pam_unix(sshd:auth): check pass; user unknown
pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=<myIpAddress>
pam_succeed_if(sshd:auth): error retrieving information about user <user>
Failed password for invalid user <user> from <myIpAddress> port 53326 ssh2
------------------
but if i log in and disconnect with root a few times and try logging in with my own id , after a few attempts ssh allows my id to login. its such a strange behaviour. heres the generated log when i succeed
------------
Accepted publickey for <user> from <myIpAddress> port 57482 ssh2
pam_unix(sshd:session): session opened for user <user> by (uid=0)
------------
please help me out as it is too irritating and sometimes takes more than half hour to log in
regards
Faheem Ahmad
 
Old 05-07-2011, 01:59 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello and Welcome to LinuxQuestions,

Have you set the permissions correctly to your authorized_keys file on the server side? I've had strange behavior when they were off sometimes.

Another thing worth indicating is that SSH will not accept your 'invalid user' after a few attempts, if the user doesn't exist then it doesn't exist and SSH will not let you in. Check the username you type in when trying to access the SSH server.

Kind regards,

Eric
 
Old 05-09-2011, 07:49 AM   #3
faheem205
LQ Newbie
 
Registered: May 2011
Posts: 2

Original Poster
Rep: Reputation: 0
thanx for ur reply Eric

the username is correct and it does exist. after a few tries using root and then logging in with my id works. also the permissions are there on the file
Regards

Faheem Ahmad
 
  


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
Chroot SSH problem: ssh working, not SFTP & SCP. NaCo Linux - Security 3 02-01-2009 03:23 AM
problem with applet signing linuxmandrake Linux - Software 0 03-07-2007 04:14 PM
problem signing on to Samba from windows ivor.miller Linux - Newbie 2 08-21-2005 09:14 AM
Text size problem signing in to SuSE 9.0 radostsguy Linux - Software 0 02-11-2005 05:38 PM
Signing in avarus LinuxQuestions.org Member Intro 1 04-03-2004 11:31 PM


All times are GMT -5. The time now is 04:26 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