Open juan-castrillon opened 2 years ago
I ran into this today as well, can confirm the above analysis matches my findings. I tested with replace golang.org/x/crypto => golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd
and can confirm this version fixes issue.
Hello terratest team. First of all thank you for a great tool!
Similar to the issue here I've running into some issues when trying to SSH into a machine in AWS with Ubuntu 22.04
I create a key pair with
keyPair := aws.CreateAndImportEC2KeyPair(t, AwsRegion, keyPairName)
and pass it to the ssh command like this :However, I keep running into the following error:
After some digging, it seems to be a problem identified within the
x/crypto/ssh
package from the stdlib (See https://github.com/golang/go/issues/49952). Apparently RSA keys are no longer supported by default. which seems to already have an available fixThis would require however the update of the dependency in terratest's
go.mod
file.Let me know if you need any more information of my use case, or anything I can help with.
Thanks in advance :)