I am trying to develop a shell script / bash script with ssh and screen, using Ubuntu / Linux. Could you help me to correct what is wrong here?
#!/bin/bash
ssh -i keypair.pem -t ubuntu@ec2-address "screen -S teste"; cd 'home'; cd 'Shell'; ./'AWS - teste.sh' "
It doesn't work.