我想执行以下命令。
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/