• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 598
  • Last Modified:

I can't upload files using sftp

Hi, I've installed fedora 10 (this is the version Liinux pptpd2 2.6.27.5-117.fc10.i686) with OpenSSH_5.1p1, OpenSSL 0.9.8g, I need that some user connect to the server by sftp and write files. I'm using the ChrootDirectory option on sshd_config file; If I use the user that I've created I can connect to the server but when I tried to upload some file I received this error messages:

Uploading text_file to /upload/text_file
Couldn't get handle: Permission denied

These are the lines that I added to sshd_config file:

Match User test
       ChrootDirectory /home/test
   #    X11Forwarding no
   #    AllowTcpForwarding no
   #    ForceCommand cvs server
       ForceCommand internal-sftp

And these are the permissions for the user directory:

drwxr-xr-x 3 root:test     /home/test
drwxr-xr-x 2 test:test 4096 2010-01-12 13:49 /home/test/upload

I 've searched on my logs and I didn't find any error message... any idea???



0
david_2911
Asked:
david_2911
1 Solution
 
ahoffmannCommented:
you're uploading to /upload/ instead of upload/
change your sftp command line
0
 
david_2911Author Commented:
wrong path
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now