Skip to content

Instantly share code, notes, and snippets.

View ObservedObserver's full-sized avatar
🥺
thinking

Elwynn Chen ObservedObserver

🥺
thinking
View GitHub Profile
@ObservedObserver
ObservedObserver / RATH: Opensource replacement of tableau and beyond.md
Last active November 6, 2024 14:23
Opensource replacement of tableau and beyond

RATH: Opensource replacement of tableau and beyond

logo

RATH is an OpenSource automated data exploration tool, which can help you automated discovery patterns & insights, generate charts and dashboards from muti-dimensional data. It uses AI enhanced engine to automate the working flow in data analysis.

Semantic UI 1 & 2 Placeholders

Avatars v1

Path: https://semantic-ui.com/images/avatar/[size]/[name].jpg
Sizes: large or small

  • https://semantic-ui.com/images/avatar/small/ade.jpg
  • https://semantic-ui.com/images/avatar/small/chris.jpg
  • https://semantic-ui.com/images/avatar/small/christian.jpg
@ObservedObserver
ObservedObserver / AutoSSH.md
Last active March 31, 2025 04:28
使用AutoSSH实现反向连接

通过 AutoSSH 建立反向连接

问题

通过外网访问局域网内的设备,局域网内设备的IP为内网IP,在外网下无法直接访问,如公司内部的GPU服务器,平时只能在公司的局域网环境下访问,但一旦离开公司的局域网环境,便无法连接到GPU服务器。而公网IP由于IPv4的原因,非常稀少,不可能为每一台设备都分配自己的公网IP。 为了能够访问到局域网中的设备,主要有两种方式:

端口映射:需要权限管理上级网关或者路由器或者防火墙
反向连接:需要一台外网服务器(VPS)做中继主机

Internet上去主动连接一台内网是不可能的,一般的解决方案分两种,一种是端口映射(Port Forwarding),将内网主机的某个端口Open出防火墙,相当于两个外网主机通信;另一种是内网主机主动连接到外网主机,又被称作反向连接(Reverse Connection),这样NAT路由/防火墙就会在内网主机和外网主机之间建立映射,自然可以相互通信了。但是,这种映射是NAT路由自动维持的,不会持续下去,如果连接断开或者网络不稳定都会导致通信失败,这时内网主机需要再次主动连接到外网主机,建立连接。