0

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?

2
  • If it works for your mate, then you are NOT using the same credentials or you are connecting to a different host or you are trying to upload to a different path. Post more detailed (less obfuscated) evidence + Equivalent evidence from the mate. Commented Feb 19 at 18:28
  • Unfortunately, I don't have the exact steps used to put the files by him (he is on long leave). But I have cross checked the credentials and paths he shared to me earlier and these are exactly same. I am wondering if I need to do something additional in Windows Bash apart from the scripts above. Commented Feb 20 at 8:56

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.