Create/Append to ~/.ssh/config:
...
# EC2 Shared keys configuration
Host *.computer.amazonaws.com
User ec2-user
HostName *.computer.amazonaws.com
IdentityFile ~/.ssh/<your_pem_key>.pem
...
then just
ssh <hostNameEndingWithRegexInConfig>
Done.
Didn't work? Tell me about it in the comments.
No comments:
Post a Comment