Skip to content

Instantly share code, notes, and snippets.

@davidalves1
Last active January 10, 2017 16:44
Show Gist options
  • Save davidalves1/6b03272cb730732ba81f185bfaf5799f to your computer and use it in GitHub Desktop.
Save davidalves1/6b03272cb730732ba81f185bfaf5799f to your computer and use it in GitHub Desktop.
Como logar em sua instância da AWS pelo SSH
  1. Abrir o terminal e navegar até a pasta ~/.ssh ou até onde está o arquivo .pem (key pair) gerado pela instância

O arquivo .pem é obtido no seu console EC2 na web através do menu NETWORK & SECURITY > Key Pairs. Se não tiver nenhuma, basta criar uma nova e salvar em um lugar seguro no seu PC

  1. Executar o comando: $ ssh -i nome-do-arquivo.pem usuario@dns-da-instancia

Ex: $ ssh -i my-ec2-aws.pem [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment