F
F
favikon2020-08-21 10:41:55
linux
favikon, 2020-08-21 10:41:55

How to run a non-interactive ssh shell in clish (klish)?

Has several Eltex Tau-8 voip gateways. By default, when connecting via ssh, clish is launched in interactive mode. There was a need to receive some data from these gateways. SNMP does not send them, they are not in the device logs either. In theory, it remains to start ssh with the execution of the command. Here is the problem - if you do it as standard -

ssh [email protected] 'command'
then an error is thrown
/usr/bin/clish: option requires an argument -- S
Try `clish -h' for more information.

How to execute a command in clish in non-interactive mode? According to the documentation, this is possible, but I can not find examples

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question