0

As in the description, I can make an SSH connection to the host and I can copy files off the host to my own computer with SFTP, but I can't copy files to the host with SFTP.

Other users on this host can copy files both to and from the host with SFTP, and I've tried using different computers and different SSH/SFTP client software to connect to the server; none of them work. I've checked my disk quota to make sure I have adequate space for new files. So as far as I can tell, this problem seems to be strictly user-specific.

What can be causing this problem?

closed as unclear what you're asking by Gilles, countermode, Jeff Schaller, sam, Tim Kennedy Apr 8 '17 at 4:36

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Without any error message or debug log it is impossible to help. – Jakuje Apr 5 '17 at 12:24
  • Try putting a very small file into /tmp on the remote host, both with scp small_local_file user@remote_host:/tmp and with sftp. If write permissions are the problem, at least this should work. – dirkt Apr 5 '17 at 16:28
  • Please add information to the question, such as the output of ssh -vvv <server>, or similar. This will provide valuable insight into possible reasons for this. – Tim Kennedy Apr 8 '17 at 4:36
2

The problem seems to be a problem of the specific user with lack of write permission to the server specific location.

If you can login into the server, you should make sure that the directory which you are trying to write to is:

  • Owned by the user used in sftp
  • Owner has write permission to this folder

executing ls -lsa on the folder in the server should provide the needed information.

Not the answer you're looking for? Browse other questions tagged or ask your own question.