Differences between revisions 1 and 2
Revision 1 as of 2016-11-21 12:03:39
Size: 28
Editor: gfreudig
Comment:
Revision 2 as of 2016-11-21 13:18:11
Size: 1215
Editor: gfreudig
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Describe FAQ/SSHkeys here. == SSH Key-Based Authentification ==
An SSH server can authenticate clients using a variety of different methods. The most basic of these is password authentication, which is easy to use, but not the most secure.<<BR>><<BR>>
SSH keys prove to be a reliable and secure alternative. To use this alternative you need a key pair with a public and a private key. You can generate a key pair with the command ssh-keygen:
{{{
pmuster@chinaski:~$
pmuster@chinaski:~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/pmuster/.ssh/id_rsa):
Created directory '/home/pmuster/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/pmuster/.ssh/id_rsa.
Your public key has been saved in /home/pmuster/.ssh/id_rsa.pub.
The key fingerprint is:
d0:f5:bc:f8:16:da:5a:e3:5e:e5:ef:18:00:55:69:c8 pmuster@chinaski
The key's randomart image is:
+---[RSA 2048]----+
| ...o.. |
| . . +E o |
| . . . o. |
| . o . |
| S . + .|
| + o o |
| . * o .|
| = o o.|
| ..o ..o|
+-----------------+
pmuster@chinaski:~$
}}}

SSH Key-Based Authentification

An SSH server can authenticate clients using a variety of different methods. The most basic of these is password authentication, which is easy to use, but not the most secure.

SSH keys prove to be a reliable and secure alternative. To use this alternative you need a key pair with a public and a private key. You can generate a key pair with the command ssh-keygen:

pmuster@chinaski:~$ 
pmuster@chinaski:~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/pmuster/.ssh/id_rsa): 
Created directory '/home/pmuster/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/pmuster/.ssh/id_rsa.
Your public key has been saved in /home/pmuster/.ssh/id_rsa.pub.
The key fingerprint is:
d0:f5:bc:f8:16:da:5a:e3:5e:e5:ef:18:00:55:69:c8 pmuster@chinaski
The key's randomart image is:
+---[RSA 2048]----+
|          ...o.. |
|       . . +E o  |
|      . . . o.   |
|       .   o .   |
|        S . +   .|
|           + o o |
|          . * o .|
|           = o o.|
|          ..o ..o|
+-----------------+
pmuster@chinaski:~$ 

FAQ/SSHkeys (last edited 2023-09-19 12:40:12 by stroth)