To do that, you can use the connect-proxy command. The repository has no binary, so you will have to compile it on your own. But it is not hard if you are a good Linux user . If you run the install.sh script, you will end up with the binary at /usr/local/bin.
The last thing to do is to setup your SSH config file accordingly:
$ cat ~/.ssh/config
Host *
ServerAliveInterval 30
Host *.amazonaws.com
ProxyCommand connect-proxy -H proxy.myserver.com:80 %h %p
Host github.com
ProxyCommand connect-proxy -H proxy.myserver.com:80 %h %p
Extra bonus: access to Amazon EC2 with SSH over HTTP Proxy.
If you know a better way to do this, please comment!
Nenhum comentário:
Postar um comentário