A. You can generate a key in Linux with the following command in command line:
B. You will be asked for a file in which the key should be saved to and for a password for the key:
Quote:
user@localhost: ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_dsa):
Enter password (empty for no password):
Enter same password again:
Your identification has been saved in id_dsa.
Your public key has been saved in id_dsa.pub.
The key fingerprint is:
16:8e:e8:f2:1d:c9:b9:cf:43:9a:b3:3c:c1:1f:95:93 user@localhost
This will create a private key written to /home/user/.ssh/id_dsa and a public key written to /home/user/.ssh/id_dsa.pub. The password is utilized to protect your key. You will be asked for it when you connect via SSH.
|