Fill these in once
- Run one command on the server
ssh ubuntu@203.0.113.10 'df -h' - Run a script from your machine on the server
ssh ubuntu@203.0.113.10 'bash -s' < setup.sh
- Run one command on the server
ssh ubuntu@203.0.113.10 'df -h' - Run a script from your machine on the server
ssh ubuntu@203.0.113.10 'bash -s' < setup.sh
- Run one command on the server
ssh ubuntu@203.0.113.10 'df -h' - Run a script from your machine on the server
Get-Content setup.sh | ssh ubuntu@203.0.113.10 'bash -s'Save the script with Unix line endings (LF), or bash on the server will complain.