summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-09-12 21:12:42 +0200
committerGitHub <noreply@github.com>2024-09-12 21:12:42 +0200
commit265afe39e757a1648270603be52408a8271ed4cb (patch)
tree2afc566283ee22c65800a4798e886062a519c281 /op-mode-definitions
parent8f0a70cff733ade52a4c17b9e5062e5134098c1e (diff)
parent97d84595e07f918ce099ec4f9b9aef46b9e8819a (diff)
downloadvyos-1x-265afe39e757a1648270603be52408a8271ed4cb.tar.gz
vyos-1x-265afe39e757a1648270603be52408a8271ed4cb.zip
Merge pull request #4055 from natali-rs1985/T6694-add-execute-ssh
op-mode: T6694: Add op-mode command "execute ssh"
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/execute-ssh.xml.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/op-mode-definitions/execute-ssh.xml.in b/op-mode-definitions/execute-ssh.xml.in
new file mode 100644
index 000000000..7fa656f5e
--- /dev/null
+++ b/op-mode-definitions/execute-ssh.xml.in
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="execute">
+ <children>
+ <node name="ssh">
+ <properties>
+ <help>SSH to a node</help>
+ </properties>
+ <children>
+ <tagNode name="host">
+ <properties>
+ <help>Hostname or IP address</help>
+ <completionHelp>
+ <list>&lt;hostname&gt; &lt;x.x.x.x&gt; &lt;h:h:h:h:h:h:h:h&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>/usr/bin/ssh $4</command>
+ <children>
+ <tagNode name="user">
+ <properties>
+ <help>Remote server username</help>
+ <completionHelp>
+ <list>&lt;username&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>/usr/bin/ssh $6@$4</command>
+ </tagNode>
+ </children>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>