cannot provision a file

3 views
Skip to first unread message

Lian Jiang

unread,
Jun 21, 2017, 7:43:17 PM6/21/17
to Vagrant
Hi,

I cannot provision a file due to error "* ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain".

I have done:
eval `ssh-agent -s`
ssh-add my_private_key

And verified that I can ssh to the created instance using ssh-agent and the same user.


This is my code:

provisioner "file" {
    source      = "./bash_profile"
    destination = "/home/opc/.bash_profile"

    connection {
      type     = "ssh"
      user     = "opc"
      agent = false
    }
  }

I searched online but it was said the related bug has been fixed in 0.6.0. I am using 0.9.8.

Any idea? Thanks.

Lian Jiang

unread,
Jun 21, 2017, 7:51:36 PM6/21/17
to Vagrant
Please ignore this question since this is wrong forum. I have re-posted it in Terraform forum. Sorry about this.
Reply all
Reply to author
Forward
0 new messages