Re: Permission denied (publickey) Problem.

From: Richard E. Silverman (slade@shore.net)
Date: 03/28/02


From: slade@shore.net (Richard E. Silverman)
Date: 28 Mar 2002 05:59:15 -0500


> debug1: trying public key file /home/mccall/.ssh/authorized_keys2
> Authentication refused: bad ownership or modes for directory /home/mccall
>
> It seems to indicate that my permissions are wrong, but I am *sure*
> they are not!

Look again.

> Here are my permissions :
>
> Server side :
>
> server:/home/mccall # ls -la .ssh
> total 12
> 4 drwxr-xr-x 2 mccall users 4096 Mar 27 15:25 .
> 4 drwxrwxr-x 18 mccall users 4096 Mar 27 15:24 ..
> 4 -rw-r--r-- 1 mccall users 735 Mar 27 15:25 authorized_keys2

The complaint is about your home directory, which is group-writable --
sshd insists that it be owned by root or the target account and writable
only by the owner, unless you set "strictmodes no".

-- 
  Richard Silverman
  slade@shore.net



Relevant Pages

  • RE: Documentation of servers, directories, software ???
    ... When you put a file into this folder, it gets the permissions from ... This way we could see who the original owner of the file was. ... consider in the new server. ...
    (microsoft.public.windows.server.migration)
  • Re: FTP server comprimised
    ... Mike if you have figured it out Great. ... > My server runs Win2K adv server SP3 ... > NTFS permissions on Inetpub are everyone Read / Read&Execute / List folder ... > were IUSR the owner and other accounts limited permissions. ...
    (microsoft.public.win2000.security)
  • FTP server comprimised
    ... My server runs Win2K adv server SP3 ... to control password' Home directory allows read and log visits ... Permissions on these files were IUSR ... I have taken owner of the files and deleted them, ...
    (microsoft.public.inetserver.iis.security)
  • FTP server comprimised
    ... My server runs Win2K adv server SP3 ... to control password' Home directory allows read and log visits ... NTFS permissions on Inetpub are everyone Read / Read&Execute / List folder ... I have taken owner of the files and deleted them, ...
    (microsoft.public.win2000.security)
  • Re: truncate a table via Stored Procedure
    ... "TRUNCATE TABLE permissions default to the table owner, ... sysadmin fixed server role, and the db_owner and db_ddladmin fixed database ... SQL Server MVP ...
    (microsoft.public.sqlserver.security)