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

Unable to deal with passphrase-protected SSH keys #1

Closed
eliasp opened this issue Jan 26, 2018 · 5 comments
Closed

Unable to deal with passphrase-protected SSH keys #1

eliasp opened this issue Jan 26, 2018 · 5 comments

Comments

@eliasp
Copy link
Contributor

eliasp commented Jan 26, 2018

It looks, like hetzner-kube cluster create […] is unable to deal with passphrase-protected SSH keys.

After successfully initializing all servers, the last 2 lines of output were:

2018/01/26 09:11:28 installing docker.io and kubeadm on node 'grfy-k8s-dc5d-master-01'...
2018/01/26 09:11:28 parse key failed:ssh: cannot decode encrypted private keys

Using hetzner-kube eb0790b

@eliasp eliasp changed the title Fails when SSH key is passphrase-protected Unable to deal with passphrase-protected SSH keys Jan 26, 2018
@eliasp
Copy link
Contributor Author

eliasp commented Jan 26, 2018

Just confirmed this by creating a new unprotected keypair and used this for a test-cluster, where everything worked as expected…

@xetys
Copy link
Owner

xetys commented Jan 26, 2018

thanks for the report!

I'll need to check out how to make golang.org/crypto/ssh work with passphrase connections...or if you know how to make this, you maybe could do a PR?

@cice
Copy link
Contributor

cice commented Feb 16, 2018

i was bored, so i implemented it here #8

@xetys
Copy link
Owner

xetys commented Feb 18, 2018

closed by #8

@xetys xetys closed this as completed Feb 18, 2018
gadelkareem referenced this issue in gadelkareem/hetzner-kube Nov 19, 2018
@tckb
Copy link

tckb commented Oct 21, 2019

There seems to be a regression. I am unable to create a cluster with the same error. I have tried with and without passphrase. I get the following error:

parse key failed:ssh: cannot decode encrypted private keysparse key failed:ssh: cannot decode encrypted private keysparse key failed:ssh: cannot decode encrypted private keys2019/10/21 14:19:02 parse key failed:ssh: cannot decode encrypted private keys

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

4 participants