remote-sync icon indicating copy to clipboard operation
remote-sync copied to clipboard

Support SSH proxy

Open bstrdsmkr opened this issue 10 years ago • 9 comments

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

bstrdsmkr avatar Nov 05 '14 15:11 bstrdsmkr

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.

yongkangchen avatar Nov 08 '14 08:11 yongkangchen

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" [email protected] 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.

bstrdsmkr avatar Nov 08 '14 13:11 bstrdsmkr

A litter complex, BTW, have try useAgent?

yongkangchen avatar Nov 12 '14 08:11 yongkangchen

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" [email protected] 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.

bstrdsmkr avatar Nov 12 '14 12:11 bstrdsmkr

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?

rafaelrp avatar Jan 19 '15 03:01 rafaelrp

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

brevilo avatar Apr 19 '16 11:04 brevilo

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

Piping avatar Aug 24 '17 23:08 Piping

any news here?

HaveFun83 avatar Mar 13 '20 10:03 HaveFun83

Up. Would be incredibly useful

antoine-182 avatar Jun 24 '20 14:06 antoine-182