From 8264d32336d8333d47ddee8441b7c20d3198d003 Mon Sep 17 00:00:00 2001 From: nathaniel smith Date: Thu, 23 Feb 2017 22:02:09 -0800 Subject: [PATCH 1/2] clean up the key machine --- ttadmin/users/templates/users/keymachine.html | 115 +++++++++++------- 1 file changed, 74 insertions(+), 41 deletions(-) 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. +

+