Allow leap ssh before node init
Currently when trying to ssh into a non-initialized node it fails with a confusing error message:
--- leap/workshop.bitmask.net » leap ssh workshop 130 ↵
No RSA host key is known for 37.218.240.130 and you have requested strict checking.
Host key verification failed.
Are 'too many authentication failures' getting you down?
Then we have the solution for you! Add something like this to your ~/.ssh/config file:
Host *.workshop.bitmask.net
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly=yes
(replace `id_rsa` with the actual private key filename that you use for this provider)
After node init everything works:
--- leap/workshop.bitmask.net » leap node init workshop
= connecting to node workshop
= fetching public SSH host key for workshop
This is the SSH host key you got back from node "workshop"
Type -- 2048 bit SSH-RSA
Fingerprint -- 8a2e850a52f901f2fc3ba117f9ff172aa564a255f00f846b5905f0a70cf912f7
Public Key -- AAAAB3NzaC1yc2EAAAADAQABAAABAQC/DjpsSiEGEFGirx7EWD02Qxnrbsw3l5lc2us2F2yh8YCY0MyIXffo3XFZhVLCB/dnAQsgXoieJPbtr6Z3cAssYTP+Q2F5XdNJtfZE0Si8zeaGn5E6R1Orzc0B3LYuTUpL1rjgtov/L6KAjAKJJtRh9F2q5Oo/xwBs9DpP0sXJM6nmrS6OjzaFVawUYdurwC+Mt6TDnmYu+nDp8EzvjE2mE6sI6mTJZgTihRuT3D8nXrWNzsUaZOsg+RN6i+6qlLAcpFyelo0N8dBKA5eWIWvUuy4qwR5P3OzyKIKPKr3GHLpEn+yC4IWaRSIj3fh2xalOMQyeW09yOgOUp8xZ/5ar
Is this correct? y
= created files/nodes/workshop/workshop_ssh.pub
= created files/ssh/monitor_ssh
= created files/ssh/monitor_ssh.pub
= updated files/ssh/authorized_keys
= created files/ssh/known_hosts
= updating authorized_keys
...
leap ssh
should be able to bootstrap verifying the host key fp just like leap node init
does.