Hosting a Git Repo on Redbrick: Difference between revisions

Jump to navigation Jump to search
no edit summary
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 rsa
   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 rsa
[you@your-computer ~]$ ssh-keygen -t ed25519 -b 2048
Generating public/private rsa key pair.
Generating public/private ed25519 key pair.
Enter file in which to save the key (/Users/you/.ssh/id_rsa):  
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 /Users/you/.ssh/id_rsa.
Your identification has been saved in /home/<you>/.ssh/id_ed25519
Your public key has been saved in /Users/you/.ssh/id_rsa.pub.
Your public key has been saved in /home/<you>/.ssh/id_ed25519.pub
The key fingerprint is:
The key fingerprint is:
58:06:86:0c:83:5e:4e:ab:75:93:96:37:76:42:73:07 you@your-computer.local
SHA256:nSZpii8CANduOS4PQ2hSM9ZgMUY3pdn1zAiLjCN902Q you@your-computer
The key's randomart image is:
The key's randomart image is:
+--[ RSA 2048]----+
+--[ED25519 256]--+
| .oo .E.     |
| .B=o.E .       |
|. +o. + . .    |
|.+*=oX + =      |
|. + . + = .     |
|o=++B.+ . +      |
| . + * O .       |
|+o.o=.  o .     |
o o = S       |
|+. 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 - id_rsa and id_rsa.pub. id_rsa is your '''private''' SSH key, and id_rsa.pub is the corresponding public key. You keep id_rsa to yourself, and you can give id_rsa.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.
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.




Navigation menu