Re: SFTP file upload issue
- From: comphelp@xxxxxxxxx (Todd H.)
- Date: 28 Sep 2006 07:31:46 -0500
"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/
.
- References:
- SFTP file upload issue
- From: umesh
- Re: SFTP file upload issue
- From: Todd H.
- Re: SFTP file upload issue
- From: umesh
- Re: SFTP file upload issue
- From: Todd H.
- Re: SFTP file upload issue
- From: umesh
- SFTP file upload issue
- Prev by Date: Re: SFTP file upload issue
- Previous by thread: Re: SFTP file upload issue
- Next by thread: Re: SFTP file upload issue
- Index(es):
Relevant Pages
|
|