225
edits
mNo edit summary |
No edit summary |
||
| Line 20: | Line 20: | ||
To do this on a Unixey (Linux/Mac OS X/on redbrick) system, run: | To do this on a Unixey (Linux/Mac OS X/on redbrick) system, run: | ||
ssh-keygen -t | ssh-keygen -t ed25519 -b 2048 | ||
You'll probably want to hit enter for most/all of the default options. Especially the first one (where to save the key). When it's done, you'll probably see something like this: | You'll probably want to hit enter for most/all of the default options. Especially the first one (where to save the key). When it's done, you'll probably see something like this: | ||
<pre> | <pre> | ||
[you@your-computer ~]$ ssh-keygen -t | [you@your-computer ~]$ ssh-keygen -t ed25519 -b 2048 | ||
Generating public/private | Generating public/private ed25519 key pair. | ||
Enter file in which to save the key (/ | Enter file in which to save the key (/home/<you>/.ssh/id_ed25519): | ||
Enter passphrase (empty for no passphrase): | Enter passphrase (empty for no passphrase): | ||
Enter same passphrase again: | Enter same passphrase again: | ||
Your identification has been saved in / | Your identification has been saved in /home/<you>/.ssh/id_ed25519 | ||
Your public key has been saved in / | Your public key has been saved in /home/<you>/.ssh/id_ed25519.pub | ||
The key fingerprint is: | The key fingerprint is: | ||
SHA256:nSZpii8CANduOS4PQ2hSM9ZgMUY3pdn1zAiLjCN902Q you@your-computer | |||
The key's randomart image is: | The key's randomart image is: | ||
+--[ | +--[ED25519 256]--+ | ||
| . | | .B=o.E . | | ||
|. | |.+*=oX + = | | ||
|. + . + | |o=++B.+ . + | | ||
| . | |+o.o=. o . | | ||
| | |+. o . S + | | ||
| . | |. + .. o o | | ||
| | | . =. . | | ||
| | | . o. | | ||
| | | . .. | | ||
+---- | +----[SHA256]-----+ | ||
[you@your-computer ~]$ | [you@your-computer ~]$ | ||
</pre> | </pre> | ||
| Line 51: | Line 51: | ||
(the little ascii art bit might not show up on older versions of SSH). | (the little ascii art bit might not show up on older versions of SSH). | ||
This has created two files on your computer - | This has created two files on your computer - id_ed25519 and id_ed25519.pub. id_25519 is your '''private''' SSH key, and id_25519.pub is the corresponding public key. You keep id_25519 to yourself, and you can give id_25519.pub to admins to allow you to access a repository. You can also upload it to a remote server (like redbrick) and put it in a specific location to allow you passwordless logins, but you can google for how to do that. | ||