using pem file with sshpass code example Example: sshpass execute command sshpass -p 'password' ssh user@domain #THIS CAN NEVERTHELESS BE EXTREMELY INSECURE