Complete the code to specify the SSH user in the connection block.
connection {
type = "ssh"
user = "[1]"
private_key = file("~/.ssh/id_rsa")
host = self.public_ip
}The SSH user is typically set to ubuntu for Ubuntu cloud instances.
Complete the code to specify the SSH private key file path in the connection block.
connection {
type = "ssh"
user = "ubuntu"
private_key = file("[1]")
host = self.public_ip
}The private key file is usually ~/.ssh/id_rsa for SSH authentication.
Fix the error in the connection block by completing the missing host attribute.
connection {
type = "ssh"
user = "ubuntu"
private_key = file("~/.ssh/id_rsa")
host = [1]
}The host should be the public IP of the instance, accessed as self.public_ip.
Fill both blanks to complete the connection block with SSH type and user.
connection {
type = "[1]"
user = "[2]"
private_key = file("~/.ssh/id_rsa")
host = self.public_ip
}The connection type is ssh and the user is ubuntu for typical Linux instances.
Fill all three blanks to complete the connection block with SSH type, user, and private key file.
connection {
type = "[1]"
user = "[2]"
private_key = file("[3]")
host = self.public_ip
}The connection block uses ssh as type, ubuntu as user, and ~/.ssh/id_rsa as the private key file.