summaryrefslogtreecommitdiff
path: root/op-mode-definitions/execute-ssh.xml.in
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2024-09-12 10:28:10 +0300
committerNataliia Solomko <natalirs1985@gmail.com>2024-09-12 10:28:10 +0300
commit97d84595e07f918ce099ec4f9b9aef46b9e8819a (patch)
tree4cc7e2c3c553381652ce3f72bd905f9b9275ca01 /op-mode-definitions/execute-ssh.xml.in
parent4bbd5c7c13f7ea72ba40813db0e6258ecf0a59f7 (diff)
downloadvyos-1x-97d84595e07f918ce099ec4f9b9aef46b9e8819a.tar.gz
vyos-1x-97d84595e07f918ce099ec4f9b9aef46b9e8819a.zip
op-mode: T6694: Add op-mode command "execute ssh"
execute ssh host [host] user [username]
Diffstat (limited to 'op-mode-definitions/execute-ssh.xml.in')
-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>