Afficher un message
Vieux 28/09/2006, 13h31   #7
Todd H.
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: SFTP file upload issue

"umesh" <umesh.gamare@gmail.com> writes:

> Hello,
>
> On Server :
> file permission for $home\.ssh\authorized_keys is 644
> and direcotry permission for $home\.ssh is 777


On server, try:

chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

And make sure you've added the the .pub version of your key copied
over from your client into that authoirzed_keys file on the server.

From the ssh man page:

The contents of the $HOME/.ssh/id_dsa.pub and
$HOME/.ssh/id_rsa.pub file should be added to
$HOME/.ssh/authorized_keys on all machines where the user
wishes to log in using protocol version 2 DSA/RSA
authentication. These files are not sensitive and can
(but need not) be readable by anyone. These files are
never used automatically and are not necessary; they are
only provided for the con- venience of the user.


$HOME/.ssh/authorized_keys
Lists the public keys (RSA/DSA) that can be used for
logging in as this user. The format of this file is
described in the sshd(8) manual page. In the simplest
form the format is the same as the .pub identity files.
This file is not highly sensitive, but the recommended
permissions are read/write for the user, and not
accessible by others.



> On client
> file permission for $home\.ssh\id_dsa is 600
> file permission for $home\.ssh\id_dsa.pub is 644
> and direcotry permission for $home\.ssh is 700
>
>
> Regards
>
> Umesh
>
> Todd H. wrote:
> > "umesh" <umesh.gamare@gmail.com> writes:
> >
> > > Hello,
> > >
> > > file permission for $home\.ssh\authorized_keys is 644
> > > and direcotry permission for $home\.ssh is 777

> >
> > And there's possibly one of your (or the) problem.
> >
> > I don't believe ssh or sshd will trust anything in a world writable
> > .ssh directory.
> >
> > Are these file perms on the client side or server side? Check both.
> >
> >
> > --
> > Todd H.
> > http://www.toddh.net/

>


--
Todd H.
http://www.toddh.net/
  Réponse avec citation
 
Page generated in 0,06092 seconds with 9 queries