ssh的url方案:在远程主机上调用命令 [英] url scheme for ssh: Calling command on remote host
问题描述
是否存在用于通过ssh调用远程主机上的命令的url方案?
Is there an url scheme for calling a command on a remote host via ssh?
在我的用例中,我想称呼它:
In my use case I want to call this:
psql -c "select * from my_table order by id;"
对于连接参数,存在接缝.示例:来自 https://tools.ietf.org/id/draft-salowey-secsh-uri-00.html#anchor8
There seams to be a RFC for the connection paramters. Example: from https://tools.ietf.org/id/draft-salowey-secsh-uri-00.html#anchor8
ssh://user@host.example.com
ssh://user@host.example.com
...但是如何将上述psql
命令编码为url?
... But how to encode the above psql
command into an url?
推荐答案
对于连接参数,存在接缝.示例:来自 https://tools.ietf.org/id/draft-salowey-secsh-uri-00.html#anchor8
这不是RFC,但是过期的草稿没有被任何人使用(也许创建它的思科正在使用它?).
It is not RFC, but an expired draft quite not used by anyone (maybe cisco who created it is using it?).
通常不可能.
这篇关于ssh的url方案:在远程主机上调用命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!