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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
雷峰网
雷峰网
博客园_首页
小众软件
小众软件
美团技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
P
Proofpoint News Feed
MongoDB | Blog
MongoDB | Blog
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
U
Unit 42
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
大猫的无限游戏
大猫的无限游戏
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 叶小钗

博客园 - panrui

Git和Sourcetree 模拟电子器件的恒流特性 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')

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