LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-04-2011, 09:13 AM   #1
kirtikjr
Member
 
Registered: Apr 2007
Location: banglore
Distribution: RedHat EL v4
Posts: 35

Rep: Reputation: 16
Cant ssh for a user


This is the entry when I tail /var/log/secure when I ssh for user "nightly"...


Code:
Aug  4 03:19:48 itanium2 sshd[10791]: Illegal user nightly from ::ffff:10.91.220.35

Aug  4 03:20:10 itanium2 sshd[10791]: Failed password for illegal user nightly from ::ffff:10.91.220.35 port 32862 ssh2

What could be the reason, plz suggest.
 
Old 08-04-2011, 09:17 AM   #2
kirtikjr
Member
 
Registered: Apr 2007
Location: banglore
Distribution: RedHat EL v4
Posts: 35

Original Poster
Rep: Reputation: 16
and password is correct, works when I telnet, just ssh fails.
 
Old 08-04-2011, 09:20 AM   #3
kirtikjr
Member
 
Registered: Apr 2007
Location: banglore
Distribution: RedHat EL v4
Posts: 35

Original Poster
Rep: Reputation: 16
there is a local user for the host with which I can ssh to the system but not with nightly. nightly is not in /etc/passwd
 
Old 08-04-2011, 09:22 AM   #4
omgs
Member
 
Registered: Dec 2010
Posts: 64

Rep: Reputation: 6
It looks like using ipv6, and I take that the user "nightly" is not available in your system. Check "getent passwd nightly".
 
Old 08-04-2011, 09:36 AM   #5
kirtikjr
Member
 
Registered: Apr 2007
Location: banglore
Distribution: RedHat EL v4
Posts: 35

Original Poster
Rep: Reputation: 16
I guess nightly uses LDAP or NIS to login. and getent passwd nightly shows the same result as a local user
 
Old 08-04-2011, 10:56 AM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Please post output from:
Code:
$ id nightly
Code:
$ grep 'nightly' /etc/passwd
Code:
# egrep -i 'allow|deny' /etc/ssh/sshd_config
 
Old 08-05-2011, 04:37 AM   #7
kirtikjr
Member
 
Registered: Apr 2007
Location: banglore
Distribution: RedHat EL v4
Posts: 35

Original Poster
Rep: Reputation: 16
actually nightly was an NIS user..
and the IP settings of the present host was changed.
So the keys got messy.
I disabled the PubkeyAuthentication option in /etc/ssh/sshd_config
Now I can login, but i need to regenrate the keys
 
  


Reply



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 user configuration getrue Linux - General 1 06-21-2011 08:31 AM
[SOLVED] Adding a new user to Solaris 9 so that this user can ssh into the server rcforster Solaris / OpenSolaris 2 03-14-2011 06:10 AM
User Creationg : ssh/sftp user jail to $HOME only routers Solaris / OpenSolaris 2 10-29-2007 11:28 PM
SSH per-user configuration grayswander Linux - Security 5 06-10-2007 05:52 AM
blocking ssh for a user jitheshmurali Linux - Networking 2 05-04-2006 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:04 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
Open Source Consulting | Domain Registration