Skip to content

Instantly share code, notes, and snippets.

@MaatheusGois
Created April 15, 2020 20:07
Show Gist options
  • Save MaatheusGois/3c8f9bc6fc41e9b2b47fca36d91d6984 to your computer and use it in GitHub Desktop.
Save MaatheusGois/3c8f9bc6fc41e9b2b47fca36d91d6984 to your computer and use it in GitHub Desktop.
Comandos
1* Comando:
eval `ssh-agent -s`
2* Comando:
ssh-add ~/.ssh/nomeDaChave.pem
3* Comando:
openssl rsa -in ~/.ssh/nomeDaChave.pem -pubout -out ~/.ssh/nomeDaChave.pub
4* Comando:
cat ~/.ssh/nomeDaChame.pub >> ~/.ssh/authorized_keys
5* Comando:
sudo nano /etc/hosts
control+X : Sair
Y : Salvar
Enter : Subscrever
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment