V
V
vuchchducjv2017-11-17 11:47:38
Node.js
vuchchducjv, 2017-11-17 11:47:38

How to send a command via ssh from a script?

The cron determines the ping from the router, if there is no ping, you need to send the router to reboot
The router is configured with ssh by password
How to send a reboot command from the SH script?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
Papa, 2019-08-27
Stifflera @PapaStifflera

Because acc is free.

E
Erik Mikoyan, 2019-09-14
@erik_mikoyan

On a free account, after 30 minutes of inactivity, it goes into hibernation until it receives a new request

1
1001001, 2017-11-17
@vuchchducjv

sshpass -p "password" ssh [email protected] 'command'

V
vlarkanov, 2017-11-17
@vlarkanov

ssh [email protected] 'reboot'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question