Cannot ssh for a user

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Cannot ssh for a user
# 1  
Old 08-04-2011
Cannot 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.

---------- Post updated at 07:48 PM ---------- Previous update was at 07:42 PM ----------

and password is correct, works when I telnet, just ssh fails.

---------- Post updated at 07:50 PM ---------- Previous update was at 07:48 PM ----------

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
# 2  
Old 08-04-2011
If nightly is not in /etc/passwd, how is nightly being authenticated? NIS, LDAP or what?
# 3  
Old 08-05-2011
yes, it was an NIS user.
and the IP settings of the server 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
# 4  
Old 08-08-2011
use ssh-key gen command to generate the keys
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Passwordless ssh for different user

Hello Folks, I lost touch in ssh key gen topics. I am in need of ssh to a server without password, kindly help me in configuring. I have two servers, server1 with user name apha & server1 with user name beta. I need to ssh to the server2 from server1 with respective users, Manually i... (3 Replies)
Discussion started by: Thala
3 Replies

2. HP-UX

Restrict ssh for particular user

Dear Concern, We want to restrict ssh for particular user "oracle". Our HP UX version is as below. Please advise. # uname -a HP-UX tabsdb02 B.11.31 U ia64 2963363594 unlimited-user license (2 Replies)
Discussion started by: makauser
2 Replies

3. Programming

Trying to ssh as another user and cd to directory

I can ssh to another directory by doing the following: for server in server1; do ssh -t $server1 "cd /tmp; 'ls'";done However, if I try to do it as another user it fails: I have tried: for server in server1 do dir=$(su - nbadaccount -c "ssh $server `cd '/tmp/TSTCON'` " ) pwd... (3 Replies)
Discussion started by: newbie2010
3 Replies

4. IP Networking

Default User with SSH?

Hello All, Hopefully I'm in the correct forum for this one... I just had a pretty simple question about SSH. When I ssh to a server normally I do "ssh user@ip_address". I noticed once by accident I forgot to enter the username when I was entering the command and it still attempted to... (5 Replies)
Discussion started by: mrm5102
5 Replies

5. UNIX for Dummies Questions & Answers

SSH: don't specify a user

How can I tell ssh to ask for the username at the prompt instead of passing one in via the -l parameter or $username@$server on the command line? I know that when I connect to an ssh server via putty, if I don't specify a username when connecting, the ssh server will ask for the username. I'm... (1 Reply)
Discussion started by: dangral
1 Replies

6. UNIX for Advanced & Expert Users

ssh jail user

I have a developer that needs ssh access to a server to get to a specific directory. I want to restrict them to that directory. I've tried to set their shell as rksh which does jail them but only if they are using ssh from another unix system. If they are using putty or winscp they can still... (2 Replies)
Discussion started by: toor13
2 Replies

7. AIX

passwordless entry using ssh from one user to a different user on the same server

Hi, We have a requirement to do passwordless entry from one user to a different user on the same AIX server using ssh keys. Can some one help me with this? Thanks in advance, Panditt (3 Replies)
Discussion started by: deshaipet
3 Replies

8. Solaris

Cant ssh for a local user

Here is the log im pasting for verbose ssh: -bash-2.05b$ ssh -v qa_fnp@10.41.11.23 OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Rhosts Authentication disabled, originating port will... (5 Replies)
Discussion started by: kirtikjr
5 Replies

9. Shell Programming and Scripting

Command for SSH with @ in User Name

I am trying to log into a server using SSH through the command line. I understand that the format is sftp -oPort=22 Username@Hostname. My issue is that my user name also has an @ symbol in it. Can someone tell me how I can get the system to not think that the last half of the user name as part... (9 Replies)
Discussion started by: davkatjenn
9 Replies

10. UNIX for Dummies Questions & Answers

change user> to user@host> ssh prompt

Hi, I was wondering how to change the prompt for my ssh login. At the moment it is like user> while I'd like it to be as user@host> It is in the .bash_profile or .ssh ??? Thanks (2 Replies)
Discussion started by: pmasterkim
2 Replies
Login or Register to Ask a Question