Skip to content

Instantly share code, notes, and snippets.

@lucianovalenca
Last active October 10, 2019 21:09
Show Gist options
  • Select an option

  • Save lucianovalenca/cdc25698a7250fc98c0eda8a021930fa to your computer and use it in GitHub Desktop.

Select an option

Save lucianovalenca/cdc25698a7250fc98c0eda8a021930fa to your computer and use it in GitHub Desktop.
Para criar uma instância nova no console AWS e configurar via Forge:
## 1. Criar instância na AWS
1. Criar instância na versão linux recomendada pelo Forge (Ubuntu) com uma chave ssh (Key Pair) criada previamente na AWS
2. Após criada, o login pode ser feito via WinSCP com essa mesma chave e usuário "ubuntu"
## 2. Adicionar instância criada no Forge
1. Cliar em Add Custom VPS
2. Adicionar dados da instância
3. Clicar em Criar e copiar dados informados (senha database e provision code)
4. Rodar código na instância criada, acessando-a como informado no passo 1
## 3. Criar acesso SSH para Forge
1. No PuttyGen, gerar uma key
2. Copiar código da public key mostrado no PuttyGen (em "Public key for pasting...")
3. Colar no painel do Forge em SSH Keys > Add Key
4. No PuttyGen clicar em "Save Private Key" e salvar arquivo .ppk
5. Usar esse arquivo .ppk para fazer login com usuário "forge"
Note: The format PuTTYGen uses when it saves the public key is incompatible with the OpenSSH authorized_keys files used for SSH key authentication on Linux servers.
If you need to see the public key in the right format after the private key has been saved:
1. Open PuTTYgen.
2. Next to Load an existing private key file, click the Load button.
3. Navigate to the private key in your file system and select it.
4. Click Open.
The public key will be redisplayed again in the appropriate format.
------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment