I’m deploying a site to an server, but the port 22 is blocked at my office. I can now use corkscrew with the ssh_config ProxyCommand directive, and everything works fine, just connect using $ ssh my_server_alias_in_sshconfig.
Now I need to use Fabric to ease deployment, but even when setting env.use_ssh_config=True it doesn’t work, it just looked up the IP address of the server and tried to connect directly, ignoring ProxyCommand and everything else. The Fabric docs says it leverages some of the config settings available, but without using ProxyCommand, Fabric seems useless here.
Any help?
I got this gist, but I don’t think it solves the ProxyCommand requirement.
Regards
For the moment, I set up a
LocalForwarddirective like:And below:
And then, run Fabric with:
This has two inconveniences:
$ ssh my_server_using_corkscrewand leave it open.localhost, so it can be a problem when deploying to multiple servers at once.I’m using this for the time, but, can this be improved?