gpt4 book ai didi

linux - 可以在同一台主机上的特定端口上运行命令吗?

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:48:58 25 4
gpt4 key购买 nike

我想执行以下命令。

ssh -p 29418 localhost gerrit gsql

我在 ubuntu VM 上运行 gerrit 服务。在这里,建立了一个 ssh 连接,用于从同一 ubuntu VM 与同一主机的 localhost 建立连接。执行此操作是否需要 ssh 连接?有没有办法在同一台机器上,在这个特定的 port 上,在 localhost 上运行这个命令,而不需要 ssh 连接?

最佳答案

看来您必须仅使用 Gerrit Internal SSH Daemon 来运行命令。

来自documentation :

Aside from the standard Git server side actions, Gerrit supports several other commands over its internal SSH daemon. As Gerrit does not provide an interactive shell, the commands must be triggered from an ssh client, for example...

关于linux - 可以在同一台主机上的特定端口上运行命令吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37805279/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com