Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to establish a proper SSH connection #1112

Open
yyy916 opened this issue Sep 26, 2024 · 1 comment
Open

How to establish a proper SSH connection #1112

yyy916 opened this issue Sep 26, 2024 · 1 comment

Comments

@yyy916
Copy link

yyy916 commented Sep 26, 2024

I need help to create a VM with proper SSH connection so that the sshd is active when it starts. I keep missing out on the necessary Terraform config. Also, due to the fact that the template's setup is lost when run via Terraform, I can only add the authorized keys for ssh via sshkeys = <<EOF ....EOF . I see other variables like preprovision and ssh_host . I'm lost on which ones are not outdated. Can someone help me understand the other neccessities?

@TKinslayer
Copy link

I have the exact same problem, I would like to know how to provision a VM with a set of predefined private-key and public-key so that I can use its public-key to seed other VM with the value inside sshkeys = <<EOF ....EOF. None of the variables I found inside the documentation would work. I had to use Packer to bake in the key values inside a cloud-init template. It's not practical. Is there a way to do that with Terraform, instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants