proxmox terraform bpg err

│ Error: creating custom disk: unable to authenticate user "terraform-prov" over SSH to "^^^.^^^.^^^.^^^:^^^^". Please verify that ssh-agent is correctly loaded with an authorized key via 'ssh-add -L' (NOTE: configurations in ~/.ssh/config are not considered by the provider): failed to dial ^^^.^^^.^^^.^^^:^^^^: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain
│ 
│   with proxmox_virtual_environment_vm.ubuntu_vm,
│   on main.tf line 1, in resource "proxmox_virtual_environment_vm" "ubuntu_vm":
│    1: resource "proxmox_virtual_environment_vm" "ubuntu_vm" {
│ 
╵

https://registry.terraform.io/providers/bpg/proxmox/latest/docs

ssh接続できない

provider "proxmox" {
  endpoint = "https://10.0.0.2:8006/"
  username = "username@realm"
  password = "a-strong-password"
  insecure = true
	
	# ここ
  ssh {
    agent = true
  }
}

ssh接続できるものを書く

  ssh {
    agent = true
    # TODO: uncomment and configure if using api_token instead of password
    username = "root"
    password = "password"
  }
← Go home