Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
D
development_resource_index
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 68
    • Issues 68
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • yuan
  • development_resource_index
  • Issues
  • #22

Closed
Open
Created Oct 31, 2019 by joker@jokerReporter

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:

  1. 正向隧道 / remote port 導入至 local port (訪問 local:local-port 等於訪問 remote:remote-port)
    ssh -o ServerAliveInterval=60 -N -L {local}:{local-port}:{remote}:{remote-port} {user}@{remote}

  2. 反向隧道 / 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}
Edited Mar 02, 2023 by yuan
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None