3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 10585
/ 2 Years ago, tue, june 7, 2022, 7:53:54
I am trying to build a script/command that will restart our Asterisk/Elastix service on our PBX. The script is basically using simple command with auto log-in public key that run from Ubuntu 14.04LTS:
The command script is:
ssh user@iphost 'service asterisk restart'
But after the command finished and service restarted, the ssh stays and only after ctrlc its breaks out.
My question, is how can I terminate the session after the command completes?
More From » command-line