21 lines
1.2 KiB
HTML
21 lines
1.2 KiB
HTML
<!--
|
|
title: Adding another SSH key on Pubnix
|
|
description:
|
|
published: true
|
|
date: 2024-06-23T17:37:24.710Z
|
|
tags: pubnix
|
|
editor: ckeditor
|
|
dateCreated: 2024-06-23T17:01:07.797Z
|
|
-->
|
|
|
|
<p>The registration form for the pubnix can only accept one ssh key. This means that, incase you need another key, or you have a key in a format that isnt supported by the form (anything that isn't rsa/ed25519/ecdsa), you need to input one key in a supported format first, and then modify it later after first login.</p>
|
|
<p>If you don't have a key with a format that is supported, go through the <a href="https://wiki.projectsegfau.lt/Generating_an_SSH_key">Generating an SSH key</a> to create a supported one.</p>
|
|
<p>After you ssh with the key, run the following</p>
|
|
<pre><code class="language-plaintext">$ nano ~/.ssh/authorized_keys
|
|
<the ssh key you gave for signup>
|
|
<add your new key here>
|
|
Control+x</code></pre>
|
|
<p>Note: If you have multiple keys, you might need to use the -i flag to specify the right key to use like this:</p>
|
|
<pre><code class="language-plaintext">$ ssh -i ~/.ssh/id_keyyougaveforpubnix USERNAME@p.projectsegfau.lt</code></pre>
|
|
<p>Additionally, if your key is in the PuTTY format, you need to convert it to the OpenSSH one with PuTTYGen.</p>
|