'Running multiple remote commands via a single ssh command
sshpass -p Password ssh -o StrictHostKeyChecking=no a.user@IP "Command1 ; Command2"
When i try to run multiple commands after ssh it only runs the 1st command and exits after that without executing others.
I am running the above command, Could I improve on it to run all the commands sequentially?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|