wiki/Generating_an_SSH_key.html
2024-06-24 14:10:54 +00:00

30 lines
1.7 KiB
HTML

<!--
title: Generating an SSH Key
description:
published: true
date: 2024-06-23T17:37:10.255Z
tags: pubnix
editor: ckeditor
dateCreated: 2024-06-23T16:58:39.906Z
-->
<p>An SSH key is a public-private keypair that allows you to remotely access servers, in this case, the pubnix.</p>
<p>It is mandatory for pubnix registration since its the only secure way to let users access the pubnix.</p>
<p>Generating it is simple, and does not need a lot.</p>
<h2>Installation</h2>
<h4>*Linux, MacOS &amp; *BSD</h4>
<p>SSH is pre-installed on most systems. If it isn't, <a href="https://repology.org/project/openssh/versions">install it via your package manager</a>.</p>
<h4>Windows 10 1809+, 11</h4>
<p>From Windows 10 1809 onwards, ssh is built in to powershell.</p>
<h4>Windows 10 1809 and before</h4>
<p>For older versions of windows, you need to use putty to do so.</p>
<p>You can find a guide on it in the <a href="https://docs.digitalocean.com/products/droplets/how-to/add-ssh-keys/create-with-putty/">Digital Ocean Docs</a>.</p>
<h2>Generation of the SSH Key</h2>
<p>After that run the following in the terminal (or powershell.exe on windows)</p>
<p><code>ssh-keygen -t ed25519</code></p>
<p>Here, we recommend using ed25519 since its the latest and greatest format, however the default format (RSA) works too!</p>
<p>You can accept the defaults for the prompts, and add a password if you want to.</p>
<p>The password is an additional security layer, which would be needed to unlock the key.</p>
<p>Now, you can submit the &lt;generated-key-name&gt;.pub file in the pubnix registration form.</p>
<p>Note: the form only takes one key, but you can add more later by just appending them to <code>~/.ssh/authorized_keys</code></p>