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...
Originally asked by user1289947 on Stack Exchange (askubuntu) (CC BY-SA 3.0).