Show Table of Contents
18.104.22.168. Configuring ssh-agent with a GUI
ssh-agentutility can be used to save your passphrase so that you do not have to enter it each time you initiate an
scpconnection. If you are using GNOME, the
gnome-ssh-askpasspackage contains the application used to prompt you for your passphrase when you log in to GNOME and save it until you log out of GNOME. You will not have to enter your password or passphrase for any
scpconnection made during that GNOME session. If you are not using GNOME, refer to Section 22.214.171.124, “Configuring
To save your passphrase during your GNOME session, follow the following steps:
- You will need to have the package
gnome-ssh-askpassinstalled; you can use the command
rpm -q openssh-askpassto determine if it is installed or not. If it is not installed, install it from your Red Hat Enterprise Linux CD-ROM set, from a Red Hat FTP mirror site, or using Red Hat Network.
- Select Sessions, and click on the Startup Programs tab. Click and enter(on the Panel) > > >
/usr/bin/ssh-addin the Startup Command text area. Set it a priority to a number higher than any existing commands to ensure that it is executed last. A good priority number for
ssh-addis 70 or higher. The higher the priority number, the lower the priority. If you have other programs listed, this one should have the lowest priority. Click to exit the program.
- Log out and then log back into GNOME; in other words, restart X. After GNOME is started, a dialog box will appear prompting you for your passphrase(s). Enter the passphrase requested. If you have both DSA and RSA key pairs configured, you will be prompted for both. From this point on, you should not be prompted for a password by