SSH tunnel & proxy
Tunnel
- https://pohsienshih.github.io/2019/SSH-Tunnel-Introduction/
- https://blog.tienyulin.com/linux-ssh-tunnel/
- http://knifeflying.blogspot.com/2017/08/proxy-server-chrome-switchyomega.html
- https://johnliu55.tw/ssh-tunnel.html
- https://blog.rex-tsou.com/2017/10/%E5%88%A9%E7%94%A8-ssh-tunnel-%E5%81%9A%E8%B7%B3%E6%9D%BFaka.-%E7%BF%BB%E7%89%86/
- https://yu-jack.github.io/2019/01/08/ssh-tunnel/
- https://codertw.com/%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80/695667/
- https://iximiuz.com/en/posts/ssh-tunnels/
Example:
-
正向隧道 / remote port 導入至 local port (訪問 local:local-port 等於訪問 remote:remote-port)
ssh -o ServerAliveInterval=60 -N -L {local}:{local-port}:{remote}:{remote-port} {user}@{remote} -
反向隧道 / local port 導出至 remote port (訪問 remote:remote-port 等於訪問 local:local-port)
ssh -o ServerAliveInterval=60 -N -R {remote}:{remote-port}:{local}:{local-port} {user}@{remote}
Proxy
ssh -N -D {host}:{port} {user}@{host}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information