【问题标题】:SSH URI with arguments带参数的 SSH URI
【发布时间】:2021-03-27 13:30:19
【问题描述】:

我只是想在 URI 上匹配 ssh 参数,但似乎没有办法这样做,知道吗?

Shell 命令

ssh -A deploy-server.example.com

类似的 URI (我如何在这里传递 -A 参数)

/usr/bin/open "ssh://deploy-server.example.com"

【问题讨论】:

    标签: ssh uri openssh


    【解决方案1】:

    通常,您不能在其他程序上使用 ssh 选项。

    但您可以将选项添加到 ~/.ssh/config 文件中

    HOST myServer
     hostname deploy-server.example.com
     ForwardAgent yes
    

    这是可行的,因为大多数程序都使用标准的 ssh 客户端。

    【讨论】:

      猜你喜欢
      • 2021-10-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-13
      • 1970-01-01
      • 1970-01-01
      • 2018-06-19
      相关资源
      最近更新 更多