1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
1
Hello.
Lightsail normally uses public key authentication instead of password authentication to connect with things like SSH.
Therefore, download the key pair and connect by following the steps in the document below.
https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-ssh-using-terminal.html
Also, if you are using the Ubuntu blueprint, the OS user will be "ubuntu".
Conteúdo relevante
feita há 10 meses
feita há 10 meses
- AWS OFICIALAtualizada há 3 anos

Now I couldn't create instance now with key pair generation code added. New code:
It says:
`operation error Lightsail: CreateInstances, https response error StatusCode: 400, RequestID: 0eefa119-62f3-4cca-b09b-5ce625ce8dbc, NotFoundException: The
The KeyPair does not exist:
key_pair_name = aws_lightsail_key_pair.private_key_1.idThis should be referring to the keypain name as below
key_pair_name = aws_lightsail_key_pair.private_key_1.name