url scheme for ssh: Calling command on remote host

梦想的初衷 提交于 2019-12-13 16:04:41

问题


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;"

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

... But how to encode the above psql command into an url?


回答1:


There seams to be a RFC for the connection paramters. Example: from https://tools.ietf.org/id/draft-salowey-secsh-uri-00.html#anchor8

It is not RFC, but an expired draft quite not used by anyone (maybe cisco who created it is using it?).

It is not generally possible.



来源:https://stackoverflow.com/questions/43542732/url-scheme-for-ssh-calling-command-on-remote-host

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!