Re: SFTP file upload issue



"umesh" <umesh.gamare@xxxxxxxxx> 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@xxxxxxxxx> 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/
.



Relevant Pages

  • Re: Cant do setuid and file permision denied errors
    ... > I have a chpass.pl which is being executed by a change password web ... > with this file permission, I'm getting an error: ... This is a problem with the setup of your web server; ... script be runnable by anyone is far more of a security risk. ...
    (comp.lang.perl.misc)
  • HELP ... Ive been hacked
    ... I have a server that has been hacked. ... funky file permission attached to this directory, ... NTBackup backs up the file I want during a full backup, ... restore the file, ...
    (comp.security.misc)
  • Cant do setuid and file permission denied
    ... problem running my copied script to my server. ... This script tries to update a password on my linux ... with this file permission, I'm getting an error: ... another machine with almost a copycat of my server. ...
    (comp.lang.perl)
  • Re: SFTP file upload issue
    ... and direcotry permission for $home\.ssh is 777 ... Are these file perms on the client side or server side? ...
    (comp.security.ssh)
  • Re: SFTP file upload issue
    ... and direcotry permission for $home\.ssh is 777 ... Are these file perms on the client side or server side? ...
    (comp.security.ssh)