Skip to main content

All Questions

Tagged with
0 votes
0 answers
453 views

SSH Keys not propagating correctly from instance metadata to authorized_keys: missing keys, user discrepancy, and duplicate key

I want to add eight public keys via instance metadata to avoid adding them manually (i.e.: ssh to VMs, pasting the keys to .ssh/authorized_keys, etc.). I added the keys in Terraform (four distinct ...
mångata's user avatar
  • 109
0 votes
1 answer
633 views

Terraform aws_key_pair creates weird key

I've been researching and testing deploying stuff with terraform, aws secretsmanager and basic ec2 instances. I got it working. Well, the instance comes up, keys are created, and a remote-exec using ...
Stefan's user avatar
  • 31
2 votes
1 answer
4k views

How do you SSH in to an Azure VM through an Azure Bastion?

My initial understanding was that an Azure Bastion acts like a lightweight SSH (and RDP) gateway to resources -- specifically, VMs -- on the same virtual network, rather than provisioning a full VM as ...
Xophmeister's user avatar
0 votes
1 answer
220 views

SSH to EC2 instance timedout

I created an AWS EC2 instance to set up prometheus on it, I created a new ssh keypair and provisioned the instance using terraform, I used instance type as "t3.large" and an SSD disk of ...
Sadmi's user avatar
  • 11
2 votes
2 answers
3k views

git clone hangs during clone when using sshpass

Has anyone found sshpass works to set a phassphrase for ssh or git clones? I have a github repo with a deploy key and a passphrase This results in prompt for passphrase as expected and clone upon ...
Eva Brigid's user avatar
2 votes
1 answer
4k views

Terraform ssh error on Google Cloud Instance?

I've been fighting through Terraform Provisioner connection issues with ssh today. So far I've tried what I thought was working previously with this: provisioner "remote-exec" { inline = [ ...
Adron's user avatar
  • 644
4 votes
2 answers
3k views

Does Terraform Deal with “known_hosts” upon changing infrastructure? If so, how?

I'm very new to terraform so maybe this is not a great question. But I'm running through [this Amazon EC2 example] and at one point it tries to SSH to the machine, I assume to install nginx. This is ...
Randy L's user avatar
  • 147