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

推荐订阅源

L
LangChain Blog
Recent Announcements
Recent Announcements
GbyAI
GbyAI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Microsoft Azure Blog
Microsoft Azure Blog
N
Netflix TechBlog - Medium
人人都是产品经理
人人都是产品经理
MongoDB | Blog
MongoDB | Blog
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
U
Unit 42
腾讯CDC
D
Docker
The GitHub Blog
The GitHub Blog
阮一峰的网络日志
阮一峰的网络日志
Vercel News
Vercel News
I
InfoQ
Jina AI
Jina AI
爱范儿
爱范儿
宝玉的分享
宝玉的分享
博客园 - Franky
G
Google Developers Blog
P
Proofpoint News Feed

博客园 - 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')

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