mmumshad / kubernetes-the-hard-way

Bootstrap Kubernetes the hard way on Vagrant on Local Machine. No scripts.
Apache License 2.0
4.7k stars 4.54k forks source link

Geting permission denied (publickey) while sending out certificates #165

Closed fasiadel closed 2 years ago

fasiadel commented 4 years ago

Error Permission denied (publickey) on master-1 created by vagrant

jaypan13 commented 2 years ago

Hope this was already fixed on your end. I came to same issue while following the guide. This happens when machine is not allowing communication with public key provided which is not authorized. As we create public/private key by ourselves in previous step, the new key is not allowed to ssh other machines.

The fix that I did was to manually copy contents of master-1:.ssh/id_rsa.pub to master-2:.ssh/authorized_keys. Just putting here if anybody comes to same issue.

fireflycons commented 2 years ago

Hi @fasiadel What @Jay1305 did isn't a "fix", it is what you are supposed to do as part of the initial setup - that is, to create the ssh keys on master-1 and distribute to the other master and the 2 workers, such that SCP operations later on can work.

We have now merged a major change to bring this to v1.24. Many issues have been addressed as part of the upgrade. Please try it now and feel free to raise further issues.

Thanks.