diff options
author | Nataliia Solomko <natalirs1985@gmail.com> | 2024-09-12 10:28:10 +0300 |
---|---|---|
committer | Nataliia Solomko <natalirs1985@gmail.com> | 2024-09-12 10:28:10 +0300 |
commit | 97d84595e07f918ce099ec4f9b9aef46b9e8819a (patch) | |
tree | 4cc7e2c3c553381652ce3f72bd905f9b9275ca01 /op-mode-definitions/execute-ssh.xml.in | |
parent | 4bbd5c7c13f7ea72ba40813db0e6258ecf0a59f7 (diff) | |
download | vyos-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.in | 34 |
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><hostname> <x.x.x.x> <h:h:h:h:h:h:h:h></list> + </completionHelp> + </properties> + <command>/usr/bin/ssh $4</command> + <children> + <tagNode name="user"> + <properties> + <help>Remote server username</help> + <completionHelp> + <list><username></list> + </completionHelp> + </properties> + <command>/usr/bin/ssh $6@$4</command> + </tagNode> + </children> + </tagNode> + </children> + </node> + </children> + </node> +</interfaceDefinition> |