dingjie / atom-sync

Atom package to sync files bidirectionally between remote host and local over ssh+rsync
MIT License
59 stars 32 forks source link

SSH Config in Windows? #33

Open katsar0v opened 8 years ago

katsar0v commented 8 years ago

While I configured successfuly ssh for Git under windows and it works perfectly, the config does not work for Atom. The config is in ~/.ssh/config but still nothing, while ssh from the git bash console works perfectly (as well chmod is fine)

beshur commented 8 years ago

I have the same problem. Getting a 'Syntax or usage error, please review your config file.' and the wrong slashes in the connecting path - for some reason they are reflected (from / to )

BrandonJamesBorders commented 8 years ago

I'd like to get this to work as well. Using the package at work (OS X), but having no luck getting it to connect on Windows 10.

mattgen88 commented 7 years ago

Affected here. Works great on linux, though. Bravo.

mattgen88 commented 7 years ago

Decided to poke into this for a second and what's happening on windows is that it is trying to execute rsync but rsync isn't a command for windows. Works on linux and mac if you have rsync installed (which typically is the case)

Error occurs in rsync-service.coffee with the following: Error: rsync exited with code 1(…) 1 "rsync -avzpur --rsh=ssh --exclude=.sync-config.cson "" ""

So fixing this is likely not easy since there isn't an API-compatible rsync for windows.

mattgen88 commented 7 years ago

Had a thought about this, it is possible to execute bash if you have bash on windows from a batch file. It may be possible to leverage bash on windows to get rsync to do what we want. Though, the separations between windows and linux make things interesting (file system metadata and how windows chokes on files touched by the linux subsystem). Maybe someone smarter than I am can figure that out.

ayurmedia commented 7 years ago

windows 10 works if you have cygwin installed with packages "openssh + rsync" and installed your public-key + authorized_keys correctly.

now a complete package to install from package manager: https://atom.io/packages/atom-sync-cygwin