Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save candidosales/5630299 to your computer and use it in GitHub Desktop.
Save candidosales/5630299 to your computer and use it in GitHub Desktop.
chmod 400 mirafloris.pem
-Quando criar a instância EC2 escolha o Group Security "quick-start-1"
-Verifique se seu servidor permite o acesso pela porta 22 para conexões SSH.
ssh -i ~/.ec2/mirafloris.pem ubuntu@54.232.212.142
*Se apresentar este erro:
Failed to add the host to the list of known hosts (/home/candidosg/.ssh/known_hosts).
**O seu known_hosts não dá permissão para seu usuário adiciona o host do seu servidor como permitido o acesso. Assim você precisa atribuir permissão para poder alterá-lo
chmod 777 ~/.ssh/known_hosts
***Tente novamente: ssh -i ~/.ec2/mirafloris.pem ubuntu@54.232.212.142
The authenticity of host '54.232.212.142 (54.232.212.142)' can't be established.
ECDSA key fingerprint is 09:99:7f:96:7a:43:cf:ba:8a:5b:a7:35:ab:b9:ad:e8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '54.232.212.142' (ECDSA) to the list of known hosts.
****Deu certo! ^^ ...Você pode acessar seu servidor sem sudo, através do capistrano ou do mina.
*Remover o ssh de um host já existente
ssh-keygen -f "/home/candidosg/.ssh/known_hosts2" -R 54.232.212.142
ssh-keygen -f "/root/.ssh/known_hosts" -R 54.232.212.142
-Permitir a execução do ruby no terminal
source /home/candidosg/.rvm/scripts/rvm
Assegure que sua aplicação está public, se estiver privada você presica gerar uma chave ssh no seu servidor
https://github.com/candidosales/mirafloris.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment