[nycbug-talk] SSH not working for particular user

George Georgalis george
Sun Aug 7 00:53:38 EDT 2005


...this time addressed to the list...

On Sat, Aug 06, 2005 at 11:07:52PM -0400, Okan Demirmen wrote:
>On Sat 2005.08.06 at 20:46 -0400, Francisco Reyes wrote:
>> 
>> The rights of the .ssh directory were wrong.
>> I needs to be 700. I just wish sshd would say something about it.. 
>> somewhere.. anywhere.. It's near trivial to fix, yet it could be a few 
>> days before one things of looking at that. :-(
>
>uhm. i don't know what freebsd has done here (or your setup), but it
>clearly shows you - from both v1 and v2 pubkey auth:
>
>        if (options.strict_modes &&
>            secure_filename(f, file, pw, line, sizeof(line)) != 0) {
>                fclose(f);
>                logit("Authentication refused: %s", line);
>                restore_uid();
>                return 0;
>        }
>
>which shows up like this in my logs:
>Aug  6 22:38:44 hydrogen sshd[23929]: Authentication refused: bad
>ownership or modes for directory /home/okan/.ssh
>Aug  6 22:38:44 hydrogen sshd[23929]: Authentication refused: bad
>ownership or modes for directory /home/okan/.ssh

right, we must remember to look in /var/log/auth.log

// George


-- 
George Georgalis, systems architect, administrator <IXOYE><
http://galis.org/ cell:646-331-2027 mailto:george at galis.org




More information about the talk mailing list