remche / terraform-openstack-rke

Terraform Openstack RKE
Mozilla Public License 2.0
37 stars 20 forks source link

use_ssh_agent #63

Closed tcassaert closed 4 years ago

tcassaert commented 4 years ago

I was trying to make this Terraform module to work on, but I got a little confused about the use_ssh_agent. What exactly does it do?

The default is set to true, but that means you can't provide a private SSH key to access your newly provisioned nodes: https://github.com/remche/terraform-openstack-rke/blob/5b4dfd8075171e4d589267f17cb5337b48e7165e/modules/rke/main.tf#L9

I was only getting timeouts with the default value:

Error: timeout - last error: Error connecting to bastion: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

When setting the use_ssh_agent on false, I could get connection.

remche commented 4 years ago

Thanks for the bug report.

use_ssh_agent allow to use ssh agent with encrypted ssh keys. If you dont use it, you need to disable it or rke will fail. I will add a doc entry on that point !

remche commented 4 years ago

Done in b71c52f, @tcassaert is that clearer ?

tcassaert commented 4 years ago

Looks good! Thanks for the quick response!