?
Solved

I can't upload files using sftp

Posted on 2010-01-12
2
Medium Priority
?
585 Views
Last Modified: 2012-05-08
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
Comment
Question by:david_2911
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 1500 total points
ID: 26304718
you're uploading to /upload/ instead of upload/
change your sftp command line
0
 

Author Closing Comment

by:david_2911
ID: 31676429
wrong path
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Secure Shell (SSH) is a network protocol for secure data communication, mainly used to administer remote Unix / Linux servers via command line. But it also allows the user to open a secure tunnel between a client and a server where he can send any k…
Hello to you all, I hear of many people congratulate AWS (Amazon Web Services) on how easy it is to spin up and create new EC2 (Elastic Compute Cloud) instances, but then fail and struggle to connect to them using simple tools such as SSH (Secure…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month8 days, 16 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question