惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
N
Netflix TechBlog - Medium
P
Proofpoint News Feed
D
Docker
J
Java Code Geeks
L
LangChain Blog
Microsoft Security Blog
Microsoft Security Blog
The GitHub Blog
The GitHub Blog
I
InfoQ
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
Engineering at Meta
Engineering at Meta
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
T
Tailwind CSS Blog
M
MIT News - Artificial intelligence
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
腾讯CDC
罗磊的独立博客
U
Unit 42
爱范儿
爱范儿
Vercel News
Vercel News
MyScale Blog
MyScale Blog

博客园 - panrui

模拟电子器件的恒流特性 python环境下的加密库import Crypto失败解决 TI的C2000系列处理器的Flash使用指导手册 TI的TMS320的MCU的16位地址的特点 使用开源音频软件去分析声音的频率成分 SVPWM波形分区 python的使用 什么是xml c语言中const关键字的使用 Cross compilation 程序流监控 飞思卡尔的工具freemaster和powerpc调试器的配合使用 汽车电子sent协议的使用 Autosar 入门 INCA 如何让标定的map显示成立体的图形的形式 ASPICE的实践 安装ubuntu后的U盘(tf卡)恢复到之前的状态 bash脚本的判断语句之一 csec的key更新 推测执行 Speculative execution 什么是cache Assembler Instructions with C Expression Operands
ssh的使用
panrui · 2022-11-21 · via 博客园 - panrui

Example:

在本地(local)上运行

ssh  -L   the-local-listening-port:localhost:the-host-listening-port  root@server-host-addr

此时,在本地(local)上通过

localhost:the-local-listening-port

就可以访问remote的资源。

架构(User Case)如下:

user(working using a small PC or laptop)   ->    local     -> remote(host or server)

下面是另外一个话题:

 在本地(local)上运行

ssh    -R  the-local-listening-port:localhost:the-host-listening-port  root@server-host-addr

然后在server端,就可以访问local的某个地址和端口所提供的服务,比如NAS等。

架构(User Case)如下:

user(looking at the server's screen)   ->    server(host) -> local(But this 'local' now reside in 'remote')

尽量不要使用一些公共的已经定义好的端口,否者可能失败。