Bash - SSH into AWS EC2

#!/bin/bash : ' SSH to AWS EC2 ssh -i {key}.pem ec2-user@{your.server.ip} ' cd /Path/To/Key/;ssh -i YourEC2KeyName.pem ec2-user@255.255.255.255;
ssh -i {key}.pem ec2-user@{your.server.ip}

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.