Multiple commands on remote machine using shell script

Try something like this:

ssh [email protected] "cd /home && ls -l"

Leave a Comment