小编Sup*_*net的帖子

ssh隧道后在本地执行命令

我有一个脚本文件./run_app.sh,其中包含以下内容:

ssh -L 8888:localhost:8888 ubuntu@address
./run_website.sh   # it should be executed locally
Run Code Online (Sandbox Code Playgroud)

但它试图在远程机器上运行第二行。实际上,我想在我的电脑上运行它。任何的想法?

linux ssh script ubuntu

2
推荐指数
1
解决办法
1979
查看次数

标签 统计

linux ×1

script ×1

ssh ×1

ubuntu ×1