-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
encrypted ssh keys with ssh-agent no longer works on 0.6.7 #4072
Comments
Hi @mentalstring, for clarity, do you want to use pass-phrase protected keys for provisioner connections? |
@jen20 Yes, that's right. Was working fine, but updating to 0.6.7 seems to make it impossible, unless I'm missing something. Also tried with deprecated |
+1 |
I'm seeing this on
it's reading the encrypted key file rather than using the agent despite |
Any news on this? Bug still present in latest v0.9.2 👎 |
Hi all! Sorry for the lack of movement here. The intent with the So I would expect that the Can someone on this thread confirm if things work as expected if the |
@apparentlymart Thanks for the clarification. Here's the result of the two scenarios I tried; unfortunately without success :( I am able to ssh to the node directly though (only provisioning fails); password-less and using the ssh-agent. This is on OSX and with Azure.
Scenario #1: Unencrypted ssh key with agent set to false:
Result:
Scenario #2: No private_key set, agent set to true:
Result:
|
This isn't a problem with authentication - your connection is not making it to that stage. I would instead investigate why there is no IP address associated with your connection. |
@jen20 any commands or tools you suggest I run? As mentioned, I can SSH into the node just fine. Which part of the code you reckon I should check out?. I'll try to dig into that part in the azurerm provider code base. |
@leowmjw it seems like there's something strange about your environment that isn't visible from what you shared, if There are lots of different variables here so it's hard for me to guess what might be going on, but my first idea would be to check if you have anything in Github issues is not a great place to do troubleshooting and your situation seems to be outside of the scope of this issue, so if you are still having problems I would ask you to send further questions/information to the mailing list or Gitter chat, both of which are linked from the community page. Thanks! |
Just for completeness, as pointed out the problem was connectivity; need to specify the host ip address specifically (I deploy via poor man's VPN sshuttle) as per below:
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
On 0.6.6 it was possible to use a passphrase protected ssh key simply by setting
private_key
with a key contents through$file("")
— then the local ssh-agent would take care of the rest. On 0.6.7 however it seems that is now impossible to use passphrase protected keys which seems a drop in functionality.On 7ffa66d the goal seemed to be to move away from paths into using
$file()
which on itself is fine— that's how we were using it anyway already. But now it's checking if the key used is encrypted and aborts if it is.Can't the check for if the key is encrypted be removed so that passphrase protected keys can continue being used like until 0.6.6?
The text was updated successfully, but these errors were encountered: