mrmrcoleman / autocon2_workshop

Apache License 2.0
5 stars 4 forks source link

Spin up lab machines for attendees and have them test the SSH #67

Open mrmrcoleman opened 1 week ago

mrmrcoleman commented 1 week ago

One key is still failing:

TASK [droplet_management : Add attendee SSH key to root's authorized_keys] *************************************************************************************************************************************
fatal: [localhost -> rhightower(64.225.15.194)]: FAILED! => {"changed": false, "msg": "invalid key specified: AAAAB3NzaC1yc2EAAAADAQABAAABgQCsGm4yJ6vWvV33SmkI7NxFMpkxoGA4E98jIxBPkalab4X3igtxB3joWOlP3NjIgBS8qsEo0q4Qiw0U2za5Z5dk/ZEI638QCB/fRHReOyEiDBJ1Ts49M7v675Z69MiWktaV1+wmEJV93m62wvpTstSRm5yQhJ1NTTQjH3RzuheEeFOB+G6SjtERR8pXvS3bI9mJm1pG5wcQzAdMEvPhbV8CFGHh8a4lCBOgAE2U+UHuxhpqKx6994HQIWIzIJhF3gRNMW9ntEr4nH1erxh2diH+H7b5w9XCw1/vRAEb7/vHs5qzSOEH8UVm0B98CpL6l/52SAMPEEmved2bn88OeWHT7UxK0Z9CM6+TLpvHAGuKgGpMfPfOhe5TFCUZOcrZKDkG/wQ4Q1M2oeAwsvd2HlpH+C9cB+HmDMSqUvok1GbMOyDrKY/vIlTC0VltIvZ+adOJVkdtU8QGF9PcyjT4FKGlFrsYWV6eXhsIH7rzQy7p32bE4LjG0yvvRLxwzPFy25M="}

Dave fixed these:

Some users have sent public SSH keys in the Putty format which is incorrect.

https://docs.google.com/spreadsheets/d/1SqJwz3XhmB1u6THnlktj3iSJF3vFMH24/edit?gid=417481892#gid=417481892

mrmrcoleman commented 1 week ago

https://gist.github.com/stefhen/5b3cf11b52eb7764fee7a7d30430bb2a

as dave@dk-netbox-lab:~$ cat key.txt
---- BEGIN SSH2 PUBLIC KEY ---- Subject: asilvius Comment: "" ModBitSize: 256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHvLvZ67UXKG 8GZb+UBCQA96Qxbq+K2ayZEahre2kigSCsayGAkj175Zy8dnUJkMWkkzXyAMz4jL i3EXhkbw+Fg= ---- END SSH2 PUBLIC KEY ----
 as dave@dk-netbox-lab:~$ ssh-keygen -i -f key.txt -m PKCS8
do_convert_from_pkcs8: key.txt is not a recognised public key format
 as dave@dk-netbox-lab:~$ vi key.txt
 as dave@dk-netbox-lab:~$ ssh-keygen -i -f key.txt -m PKCS8
do_convert_from_pkcs8: key.txt is not a recognised public key format
 as dave@dk-netbox-lab:~$