yongkangchen / remote-sync

Upload your files to remote host after every change. Both SCP/SFTP and FTP are supported.
https://atom.io/packages/remote-sync
MIT License
237 stars 71 forks source link

Manual SCP works, sync download works, sync upload permission denied #523

Closed ahtarr closed 3 years ago

ahtarr commented 3 years ago

I can manually move files to my remote system using (details changed obviously):

scp ./directory/index.js myname@10.20.30.40:/path/to/directory/index.js

I am prompted for my password, I enter it, and the transfer proceeds.

My .remote-sync.json looks like this:

{ "logger": { "title": "Remote Sync" }, "transport": "scp", "hostname": "10.20.30.40", "username": "myname", "password": "*****!", "target": "/path/to/directory", "ignore": [ ".remote-sync.json" ], "uploadOnSave": false, "useAtomicWrites": false, "deleteLocal": false, "watch": [], "port": "22" }

Downloading succeeds. Uploading fails with the message "Error: Permission denied".

Any suggestions?

Thanks.