-
Notifications
You must be signed in to change notification settings - Fork 18
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
Provider doesn't seem to care if a privatekey has been defined #79
Comments
I am struggling with the same problem. from the logs:
Even though
|
Hi,
So you have the actual private keyfile behind your variable for the key, or the actual key? You need the key itself in the variable.
Your variable Name seems to indicate that you encrypt your ssh key. How does your Host decrypt the ssh Key?
Hope this helps to find the Error.
Mit freundlichen Grüßen
Michael Späth
…Sent from my mobile
________________________________
From: Adam McArthur ***@***.***>
Sent: Sunday, November 19, 2023 5:29:52 AM
To: loafoe/terraform-provider-ssh ***@***.***>
Cc: Spezi2u ***@***.***>; Author ***@***.***>
Subject: Re: [loafoe/terraform-provider-ssh] Provider doesn't seem to care if a privatekey has been defined (Issue #79)
I am struggling with the same problem. from the logs:
Failed to copy content to remote file narval.computecanada.ca:22:/home/amcarth1/alloc.sh: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none],
no supported methods remain
Even though
resource "ssh_resource" "init" {
host = "narval.computecanada.ca"
user = "user"
private_key = var.encoded_ssh_private_key
when = "create" # Default
—
Reply to this email directly, view it on GitHub<#79 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHZQW4P7SNNPNBFALY72PD3YFGDMBAVCNFSM6AAAAAA5MEVJKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXG42DEMRVGE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I have my actual key, sorry, bad variable name. So yeah I think it is in a state it should work. |
Is there a way to get more debugging information? |
Hi,
try in provider debug_log = <Filename>
Should work.
Kind Reagds
…________________________________
Von: Adam McArthur ***@***.***>
Gesendet: Montag, 20. November 2023 04:10
An: loafoe/terraform-provider-ssh ***@***.***>
Cc: Spezi2u ***@***.***>; Author ***@***.***>
Betreff: Re: [loafoe/terraform-provider-ssh] Provider doesn't seem to care if a privatekey has been defined (Issue #79)
Is there a way to get more debugging information?
—
Reply to this email directly, view it on GitHub<#79 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHZQW4MYKYMLARF6IDTUOZ3YFLCZ3AVCNFSM6AAAAAA5MEVJKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJYGE2TQNZXHA>.
You are receiving this because you authored the thread.
|
Hey @Spezi2u , I have tried that and got no new information, any idea on how to proceeed? |
Hi, command: uptime
done: false
stdout:
stderr:
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain Any idea? Terraform v1.6.5 |
Had the Same problem, you need to put the actual key into the variable not the key File.
Mit freundlichen Grüßen
Michael Späth
…Sent from my mobile
________________________________
From: DaBeOps ***@***.***>
Sent: Thursday, January 18, 2024 2:41:58 PM
To: loafoe/terraform-provider-ssh ***@***.***>
Cc: Spezi2u ***@***.***>; Mention ***@***.***>
Subject: Re: [loafoe/terraform-provider-ssh] Provider doesn't seem to care if a privatekey has been defined (Issue #79)
Hi,
I got the same issue.
Here is the content of the debug information:
command: uptime
done: false
stdout:
stderr:
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
Any idea?
—
Reply to this email directly, view it on GitHub<#79 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHZQW4N63OYNZTJDPW7ABQTYPERCNAVCNFSM6AAAAAA5MEVJKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJYGUYDGNRUGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Need to define a privatekey due to full automation. Provider doesn't seem to care if a privatekey is given. Only if that said privatekey is loaded into the agent will the provider execute.
Is this a bug or did I do something wrong or misunderstood the underlying principle.
Just to make sure I set agent to false when defining the privatekey no reaction.
Pls. advise
The text was updated successfully, but these errors were encountered: