auf Client
cd $HOME mkdir .ssh chmod 700 .ssh cd .ssh # hier eine Passphrase angeben (Schutz des Keys) ssh-keygen -t rsa -b 4096 cat id_rsa.pub
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/user/.ssh/id_rsa.
Your public key has been saved in /home/user/.ssh/id_rsa.pub.
The key fingerprint is:
1e:fb:ce:7a:62:f2:29:23:04:73:64:60:3f:37:a2:03 user@localhost
The key's randomart image is:
+--[ RSA 4096]----+
| o. |
| . .o |
|E o+ o |
| .o..+ . |
| o+ S |
| .. . o |
| . o |
| . + o+. |
| . *+=+ |
+-----------------+