SSH not working for particular user

2005-08-06 Thread Francisco Reyes
Besides the AllowUsers parameter in sshd_config is there is anything else 
that would allow certain users, but not others to ssh to a machine?


Have a machine that one id can connect to, but not a second one..
I inherited the setup (about 20 machines) so don't know yet what setups 
each machine has yet. Have an ID I was given to login, but now going to 
each machine to create my own ID.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SSH not working for particular user

2005-08-06 Thread Francisco Reyes

On Sat, 6 Aug 2005, The WRS wrote:

Thanks for the feedback


Check /var/log/auth.log and perhaps


sshd[28883]: error: PAM: authentication error for fran from my machine



/var/log/messages for hints on why


Same error on that file.


/etc/hosts.allow may be the culprit


The machines were setup with hosts.allow, but I am connecting from the 
same machine using a different user.



Perhaps the uid in question has an invalid shell?


That doesn't seem to be the problem either.

From the user I was able to login I did su to my ID and that worked.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SSH not working for particular user

2005-08-06 Thread Francisco Reyes

On Sat, 6 Aug 2005, The WRS wrote:


Hmm, are the password fields in /etc/master.passwd using the same hash type?
They should ALL either start with
$1 - md5
$2 - blowfish


They are all the same $1
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


(Solved) SSH not working for particular user

2005-08-06 Thread Francisco Reyes

For the archives.

Found the problem the rights for the .ssh directory were wrong.
They need to be 700. Given that I used adduser to create that account I 
think umask or something else for the root user may be wrong or perhaps 
the adduser script.


The other point worth mentioning for anyone having a simmilar problem (ie 
some IDs connect, but others don't) is a file /etc/login.access. Settings 
in that file may allow some users to connect, but not others.


Obviously by the same token /etc/login.conf could also be an issue, but a 
less common one (ie the user has some type of time restriction).

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]