I have been trying to push files to a SFTP server using FileZilla and Bash and getting below errors:
On Bash (Windows):
$ sftp -i C:/ssh/id_rsa user@sftp-server Connected to <<sftp-server-name>> sftp> ls -l (returns the directories and files info.) sftp> put C:/ssh/test.txt /new/ Uploading C:/ssh/test.txt to /new/test.txt dest open("/test.txt"): Failure On FileZilla:
open for write: received failure with description 'General failure' Error: File transfer failed I am connecting to SFTP using key based authentication ( sftp -i C:/Work/new/id_rsa user@sftp-server in Bash). I am able to connect to SFTP location, view directories and files, create directories but unable to create files. I have tried to create files at root and directory level (having permission drwxr-xr-x) but getting the same error message.
Command: ls -l returns below:
drwxr-xr-x 1 root root 0 Feb 14 16:54 new There is enough disk space on the server. Also, file creation is working for my team mate (via Linux) using the same key and sftp details (which indicates that the SFTP user has permission to add files).
Can anyone help me what could be the issue here?