nix:proxy
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
nix:proxy [2016/08/19 11:12] – kauffman | nix:proxy [2019/10/16 17:19] – kauffman | ||
---|---|---|---|
Line 82: | Line 82: | ||
export http_proxy=http:// | export http_proxy=http:// | ||
export https_proxy=https:// | export https_proxy=https:// | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== SSH Port Forwarding ===== | ||
+ | This has many uses, but one use case we see a lot is to proxy a database connection. | ||
+ | |||
+ | You can also do some port forwarding magic with ssh. This is known to work on macOS and Linux based OS's. | ||
+ | |||
+ | The following command will open an ssh session to one of the linux machines. Once you've signed in, you can minimize this terminal window. Port 5432 on your local machine has been forwarded through the SSH connection to port 5432 on $dbserver. | ||
+ | |||
+ | < | ||
+ | user@mymachine: | ||
+ | </ | ||
+ | |||
+ | Now by connecting to localhost: | ||
+ | |||
+ | < | ||
+ | user@mymachine: | ||
</ | </ |
/var/lib/dokuwiki/data/pages/nix/proxy.txt · Last modified: 2021/01/19 09:52 by kauffman