Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Configure SSH Key-Based Authentication

39 bytes removed, 22:20, 29 October 2017
How To Create SSH Keys
or 
<pre class="code-pre "><code>Generating public/private rsa key pair.
Enter file in which to save the key (/home/<span class="highlight">username</span>/.ssh/id_rsa):
</code></pre>
The utility will prompt you to select a location for the keys that will be generated. By default, the keys will be stored in the <code>~/.ssh</code> directory within your user's home directory. The private key will be called <code>id_rsa</code> and the associated public key will be called <code>id_rsa.pub</code>.
If you had previously generated an SSH key pair, you may see a prompt that looks like this:
<pre class="code-pre "><code>/home/<span class="highlight">username</span>/.ssh/id_rsa already exists.
Overwrite (y/n)?
</code></pre>
If you choose to overwrite the key on disk, you will '''not''' be able to authenticate using the previous key anymore. Be very careful when selecting yes, as this is a destructive process that cannot be reversed.
<pre class="code-pre "><code>Created directory '/home/<span class="highlight">username</span>/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
</code></pre>
Next, you will be prompted to enter a passphrase for the key. This is an optional passphrase that can be used to encrypt the private key file on disk.