Skip to content

Instantly share code, notes, and snippets.

@romuloctba
Created March 31, 2016 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romuloctba/13f12589981eab5d5488d07840cd53e8 to your computer and use it in GitHub Desktop.
Save romuloctba/13f12589981eab5d5488d07840cd53e8 to your computer and use it in GitHub Desktop.
Add RSA key to SSH Server
  1. Verifique se já possui chave gerada com cat ~/.ssh/id_rsa.pub
  2. Caso não possua, crie uma com ssh-keygen -t rsa
  3. Execute o comando abaixo, para enviar sua RSA key para o servidor. cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment