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

标签 linux ssh gerrit

我想执行以下命令。

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/

相关文章:

linux - 如何在NAO机器人上接收原始蓝牙包

java - 如何使用 Shell 脚本在日期模式之前换行?

python - SSH:我怎么知道并发限制?

git - 我应该在我的 ssh 公钥中使用我的个人电子邮件吗?

maven - 初始化 gerrit 插件项目时出错

git diff 命令排除一些文件夹和文件

c - 是否可以在 linux 上为许多体系结构编译 c?

c - 提高在 C 中写入大量小文件的吞吐量

linux - expect Interact 一遍又一遍地读取匹配的行而不继续前进

git - "Migrating"将现有 Git 存储库更改为 Gerrit 代码修订版