Adjust script to your needs Copy to watch Make executable ssh ceres@192.168.2.15 'mkdir ~/script-shell' scp script-name.sh ceres@192.168.2.15:~/script-shell ssh ceres@192.168.2.15 'chmod 700 ~/script-shell/script-name.sh'