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

Support SSH proxy #52

Open bstrdsmkr opened 9 years ago

bstrdsmkr commented 9 years ago

We have an outbound ssh proxy at work so I can't use the same .remote-sync.json at home and at work. It would nice if Remote-sync supported the proxy command flag.

Bonus points for profile fall-back support, ie: if one profile fails, fall back to the next

yongkangchen commented 9 years ago

fall back to the next would be complex. If you just want to stop, you can put "uploadOnSave": false into .remote-sync.json. Or if you want to switch the config, I suggest that you rename the correct config file to .remote-sync.json.

BTW, I did not understand SSH proxy and the proxy command flag you said.

bstrdsmkr commented 9 years ago

At work, we have outbound port 22 blocked and one machine has an exception to serve as a bastion. Right now I can't use remote sync at all from work because I can't tell it to first create a tunnel to the bastion server and then send all ssh requests over that tunnel.

The ssh command allows you to specify a Proxycommand just for this purpose. This page probably explains it better: http://backdrift.org/transparent-proxy-with-ssh On Nov 8, 2014 3:45 AM, "Yongkang Chen" notifications@github.com wrote:

fall back to the next would be complex. If you just want to stop, you can put "uploadOnSave": false into .remote-sync.json. Or if you want to switch the config, I suggest that you rename the correct config file to .remote-sync.json.

BTW, I did not understand SSH proxy and the proxy command flag you said.

— Reply to this email directly or view it on GitHub https://github.com/vslinko/remote-sync/issues/52#issuecomment-62250569.

yongkangchen commented 9 years ago

A litter complex, BTW, have try useAgent?

bstrdsmkr commented 9 years ago

I tried setting it to yes, but no luck. I assume this is supposed to use my ssh config? I couldn't get it to with with any short names defined there either.

I'm not certain, but I think proxy support specifically could be implemented as a command that's executed before any connections are made. Then I could put a command in there to setup a port forward through a tunnel and tell the plugin to use localhost On Nov 12, 2014 3:08 AM, "Yongkang Chen" notifications@github.com wrote:

A litter complex, BTW, have try useAgent?

— Reply to this email directly or view it on GitHub https://github.com/vslinko/remote-sync/issues/52#issuecomment-62683201.

rafaelrp commented 9 years ago

We use a VPN to access ftp protocol in our dev files and atom can't connect, still "connecting" forever, there is a way i can connect to ftp using a VPN?

brevilo commented 8 years ago

Since remote-sync seems to use ssh2 for SSH connections, one you could implement ProxyCommand-like connection hopping like this 👍

Piping commented 6 years ago

use rmate + remote-atom + ssh proxy command + remote forward Can be used like this

HaveFun83 commented 4 years ago

any news here?

antoine-182 commented 4 years ago

Up. Would be incredibly useful