When using ssh-keygen
:
What is the passphrase for?
Why is it optional?
What are the security implications of specifying (or not specifying) one?
Below is an excerpt taken from a shell session (some details may have been altered):
user@localhost:~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/user/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /user/.ssh/id_rsa.
Your public key has been saved in /user/.ssh/id_rsa.pub.
The key fingerprint is:
60:8b:50:1e:0f:bc:5a:2a:13:1e:83:2b:d9:95:38:9e user@localhost
The key's randomart image is:
+---[RSA 2048]----+
| .+ |
| o.+ |
|. ...o+ |
|ooo.=o o |
|.*oB. . S |
|*.E |
|.o |
| |
| |
+-----------------+