diff --git a/ttadmin/users/forms.py b/ttadmin/users/forms.py index fd9ef27..0dcd555 100644 --- a/ttadmin/users/forms.py +++ b/ttadmin/users/forms.py @@ -70,7 +70,7 @@ class TownieForm(Form): widget=Textarea, validators=(validate_pubkey,), label='SSH public key', - help_text='if this is not a thing you are familiar with, that\'s okay! check out our guide to learn how to get one of these.') + help_text='if this is not a thing you are familiar with, that\'s okay! you can make one here or read our guide to learn more.') pubkey_type = ChoiceField( choices=SSH_TYPE_CHOICES, label='SSH public key type', diff --git a/ttadmin/users/templates/users/keymachine.html b/ttadmin/users/templates/users/keymachine.html index 2e03812..4cc3834 100644 --- a/ttadmin/users/templates/users/keymachine.html +++ b/ttadmin/users/templates/users/keymachine.html @@ -26,71 +26,104 @@ font-size:400%; } .preamble { - font-size: 200%; + font-size: 150%; background-color: #9AB211; text-align: justify; - padding-left:10%; - padding-right:10%; - } - #generate { + #controls { + text-align:center; + } + #controls button { font-size:200%; } a { text-decoration: none; color: rgb(224, 176, 255); + background-color:black; } - .key { - display: none; + a:hover { + text-decoration: underline; + } + #result { background-color: #9AB211; + display: none; } - .key a { - font-weight: bold; - } + #pubkey { + border-right: 4px solid black; + }

THE TILDE.TOWN MAGIC KEY MACHINE

-
this page will make you an SSH keypair. a keypair - consists of a public key and a private key. they're - actually really long numbers that are used in some insane math which all - boils down to one really cool fact:
- - - when used together, your keypair lets your computer talk, in - perfect secrecy, with another computer. - - -
- -
-

I'm a public key!

- -
- -
-
-

I'm a private key!
KEEP ME SECRET, PLEASE

- -
- + this machine makes SSH keypairs: a pair of public and private files + that let your computer talk, in perfect secrecy, to other + computers.
+

+ think of the public file as a padlock🔒: you can put it + anywhere and no one can get past it. but by using the private half + like a key 🔑, which you keep secret, you can unlock your + padlock whenever you want. +

+

+ SUPER CONFUSINGLY, these "files" are both called keys: your public + key and private key. that doesn't make much sense and i apologize. +

+

+ +

+ + + + + + + + +
+

🔒 public key

+ +
+ +
+

🔑 private key(KEEP SECRET)

+ +
+ +
+

+ what now? you can now use these files with the ssh + command! if, for example, you have signed up for tilde + town using the public key you generated above and saved + the private key as id_rsa in your Downloads + directory, you can open a terminal and run: + +

+                           ssh -i Downloads/id_rsa YOUR_USERNAME_HERE@tilde.town
+                        
+ + For more information about where to save keys, how to + use them, and how to use terminals (on all platforms), + check out the tilde.town ssh + primer. +

+