Red Hat LINUX 7.2 - OFFICIAL LINUX CUSTOMIZATION GUIDE Manual page 105

Hide thumbs Also See for LINUX 7.2 - OFFICIAL LINUX CUSTOMIZATION GUIDE:
Table of Contents

Advertisement

Section 9.3:Configuring an OpenSSH Client
4.
If you are running GNOME, skip to Configuring ssh-agent with GNOME in Section 9.3.4. If you
are not running the X Window System, skip to Configuring ssh-agent in Section 9.3.4.
Generating an RSA Key Pair for Version 2
Use the following steps to generate a RSA key pair for version 2 of the SSH protocol. This is the
default starting with OpenSSH 2.9.
1.
To generate a RSA key pair to work with version 2 of the protocol, type the following command
at a shell prompt:
ssh-keygen -t rsa
Accept the default file location of ~/.ssh/id_rsa. Enter a passphrase different from your
account password and confirm it by entering it again.
2.
Change the permissions of your .ssh directory using the command chmod 755 ~/.ssh.
3.
Copy the contents of ~/.ssh/id_rsa.pub to ~/.ssh/authorized_keys2 on the ma-
chine to which you want to connect. If the file ~/.ssh/authorized_keys2 doesn't exist,
you can copy the file ~/.ssh/id_rsa.pub to the file ~/.ssh/authorized_keys2 on
the other machine.
4.
If you are running GNOME, skip to Configuring ssh-agent with GNOME in Section 9.3.4. If you
are not running the X Window System, skip to Configuring ssh-agent in Section 9.3.4.
Generating an RSA Key Pair for Version 1.3 and 1.5
Use the following steps to generate an RSA key pair, which is used by version 1 of the SSH Protocol.
If you are only connecting between Red Hat Linux 7.2 systems, you do not need an RSA key pair.
1.
To generate an RSA (for version 1.3 and 1.5 protocol) key pair, type the following command at
a shell prompt:
ssh-keygen
Accept the default file location (~/.ssh/identity). Enter a passphrase different from your
account password. Confirm the passphrase by entering it again.
2.
Change the permissions of your .ssh directory and your keys with the commands chmod 755
~/.ssh and chmod 644 ~/.ssh/identity.pub.
1
1
105

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux 7.2

Table of Contents