ssh的url方案:在远程主机上调用命令 [英] url scheme for ssh: Calling command on remote host

查看:473
本文介绍了ssh的url方案:在远程主机上调用命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在用于通过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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆