Cant ssh for a user
This is the entry when I tail /var/log/secure when I ssh for user "nightly"...
Aug 4 03:19:48 itanium2 sshd: Illegal user nightly from ::ffff:10.91.220.35
Aug 4 03:20:10 itanium2 sshd: Failed password for illegal user nightly from ::ffff:10.91.220.35 port 32862 ssh2
What could be the reason, plz suggest.
and password is correct, works when I telnet, just ssh fails.
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
What authentication mechanism is "nightly" using to authenticate via telnet?
I guess it uses LDAP or NIS
On the server, in /etc/ssh/sshd_config, is a list of users listed in AllowUsers?
If LDAP/NIS, maybe there is client-side configuration that needs to be done? Google for something like "Failed password for illegal user" + NIS or LDAP
there is nothing listed in AllowUsers. Let me try to see somewhere else. thanks
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
ah. you can use ssh-keygen for that. and try ssh-copy-id to properly and safely copy the SSH keys to your remote host.