add figures to illustrate ssh forwardings#41
Conversation
|
|
||
| 本地端口转发(**L**ocal port forwarding) | ||
|
|
||
|  |
| ssh -L 8080:localhost:80 example | ||
| ``` | ||
|
|
||
There was a problem hiding this comment.
文本建议包裹在 \textrm 里面,而命令包裹在 \texttt 里。
|
Also if you don't mind, check out https://mermaid.js.org/, a LaTeX PNG probably wouldn't fit here (dark mode, text selection, etc.) |
原来有mermaid插件,感谢提示 |
|
我觉得这篇 blog 里的图画得更好,考虑直接引用? |
确实,但又回到了那个问题
Though not LaTeX, it still disallow text selection and wont fit in dark mode |
Dark mode and Text selection isn't a must per say. 我最开始在想既然你用 LaTeX 画了那么不如导出一个 SVG 然后 embed 进来,这样会好一点,然后我觉得 Mermaid 完全能做这件事情…… 那个 blog 的图画的不错,我个人觉得会比这边 PR 里的图更直观一点,但是 copyright 的问题还是要注意一下。 然后稍等我来研究下 Mermaid 的问题 |
|
其实也可以直接插两张图片,这个主题是有 image auto switch 的支持的 https://squidfunk.github.io/mkdocs-material/reference/images/?h=dark#light-and-dark-mode |
flowchart LR
subgraph A[本地]
direction TB
local[程序或用户]
localhost[主机]
local --> localhost
end
subgraph B[远程]
direction TB
remote[主机]
remoteService[服务]
remote --> remoteService
end
localhost --> remote
local --> remoteService
ok 所以 Mermaid 应该是没戏了,文档里写了 Limitation
考虑画两张图吧,dark mode 下看亮色图片真的不怎么舒服 |
bee8306 to
92226b0
Compare
|
我先加了个 8ed4524,可以再看看还有没有改进的办法 |

我想干这个事很久了.jpg
为ssh forwarding添加了三幅箭图来说明这些forwarding的功能,
这些quiver由q.uiver.app 生成