By
default, the file name id_rsa, which represents an RSA
v2 key, appears in parentheses. You can select this file by pressing the Return key. Or, you can type an alternative file name.

Enter file in which to save the key (/home/jdoe/.ssh/id_rsa):<Press Return>

The file name of the public key is created automatically by appending
the string .pub to the name of the private key file.

Type a passphrase for using your key.

This passphrase
is used for encrypting your private key. A null entry is strongly
discouraged. Note that the passphrase is not displayed when you
type it in.

Enter passphrase (empty for no passphrase): <Type passphrase>

Retype the passphrase to confirm it.

Enter same passphrase again: <Type passphrase>
Your identification has been saved in /home/jdoe/.ssh/id_rsa.
Your public key has been saved in /home/jdoe/.ssh/id_rsa.pub.
The key fingerprint is:
0e:fb:3d:57:71:73:bf:58:b8:eb:f3:a3:aa:df:e0:d1 jdoe@myLocalHost

Check the results.

Check that the path to the key
file is correct.

% ls ~/.ssh
id_rsa
id_rsa.pub

At this point, you have created a public/private key pair.

Choose the appropriate option:

If your administrator has configured
host-based authentication, you might need to copy the local host's public
key to the remote host.

Example 19–2 Establishing a v1 RSA Key for a User

In the following example, the user can
contact hosts that run v1 of the Solaris Secure Shell protocol. To be authenticated by v1
hosts, the user creates a v1 key, then copies the public key portion to the
remote host.