url ssh 方案:在远程主机上调用命令
url scheme for ssh: Calling command on remote host
是否有 url 通过 ssh 在远程主机上调用命令的方案?
在我的用例中,我想这样称呼:
psql -c "select * from my_table order by id;"
连接参数似乎有一个 RFC。示例:来自 https://tools.ietf.org/id/draft-salowey-secsh-uri-00.html#anchor8
ssh://user@host.example.com
...但是如何将上面的psql
命令编码成url?
There seams to be a RFC for the connection paramters. Example: from https://tools.ietf.org/id/draft-salowey-secsh-uri-00.html#anchor8
它不是 RFC,而是一个完全没有人使用的过期草案(也许创建它的思科正在使用它?)。
一般情况下是不可能的。
是否有 url 通过 ssh 在远程主机上调用命令的方案?
在我的用例中,我想这样称呼:
psql -c "select * from my_table order by id;"
连接参数似乎有一个 RFC。示例:来自 https://tools.ietf.org/id/draft-salowey-secsh-uri-00.html#anchor8
ssh://user@host.example.com
...但是如何将上面的psql
命令编码成url?
There seams to be a RFC for the connection paramters. Example: from https://tools.ietf.org/id/draft-salowey-secsh-uri-00.html#anchor8
它不是 RFC,而是一个完全没有人使用的过期草案(也许创建它的思科正在使用它?)。
一般情况下是不可能的。