Go to the New Facility Site
| Home | News | Contacts | Guided Tour | User Information | Organization | RHIC | BNL ||
|
|
|
SSH keys are a public/private
key pair that allows a login to an
ssh
deamon (sshd) without using a password. SSH keys are
generated
using the
Note: Loading your SSH pblic key into the RCF/ACF LDAP
server, as described in these pages, will only allow you to
login to the RCF and ACF gateway machines. You will no longer
automatically get your Kerberos and AFS tokens. It is
recommended that you run the Note: SSH keys are checked within the sshd program itself, and so will take precedence over the other authentication methods. When fully implemented, CryptoCard authentication will automatically obtain Kerberos and AFS tokens and tickets. Generating KeysWarning: Do not generate your key pair on a multiuser machine. The keys should be created on your personal desktop or laptop. In addition, do not store your private key file on a multiuser machine. You private key file should only reside on your personal machine(s).
Step by step instructions
for Linux/Unix/MacOS/Cygwin
To generate an SSH key pair under Unix/Linux/Macintosh use
the Windows
Similarly, the
Using SSH Keys
To use your ssh key to login to another remote machine, you must
copy the public key file to the remote machine. For use at the
RCF/ACF, you can use the
SSH
key file upload form to upload your public key file (the one
with the
To avoid typing your passphrase each time you login, see the section below on the SSH agent. Note: If you use the SSH agent with PuTTY, you do not have to enter the private key file name on the Auth page of the PuTTY configuration, all is handled by the agent. Multiple MachinesIf you own multiple machines (e.g, a desktop and a laptop), then you can generate a public/private key pair on one machine, upload the public key to the LDAP server, and copy the private key to your other machines. Note: If you want to move keys between a Windows machine running PuTTY and a Linux machine, then you will have to convert the format of the key since PuTTY uses a different format from OpenSSH. Consult these instructions. If you use Cygwin, the key files should be compatible since OpenSSH is the version of ssh implemented in Cygwin . The SSH Agent
Each time you login to a remote host using ssh keys, you will
be prompted to supply the pass phrase used to lock your private
key. There is an ssh agent that will hold your private key for
you, respond to the ssh transaction and supply the key as
needed. You start the ssh agent with the command:
You add keys to the agent with the Windows - PuTTY
To use the ssh agent under Windows, you
just have to start If you want the agent to start automatically and load your private key when you start windows, then simply add the .ppk file to your "Startup" folder in your "Start" memu (this assumes that you intalled the PuTTY programs using the Windows installer method so that the association between the .ppk extension and the Pageant program was made) as: C:\Documents and Settings\<user>\id_rsa.ppk
where <user> is replaced by your username and the .ppk
file should be the name of your private key file. You, of
course, will browse to the file during the process of adding
the file to the Where <keyfile> is replaced with the path to the keyfiles you want to load. If you do this, then when you start up your machine a dialog box asking for the passphrase for the private keyfile(s) you put in the Startup folder will popup. After entering the passphrase, the Pageant icon should appear in the system tray and it should contain your private key(s). Windows - Cygwin
The ssh-agent works under Linux/Unix because parent processes
spawn child processes that inherit the environment of the
parent. The concept of a child process inheriting an
environment does not exist under Windows, so when the ssh-agent
creates a random socket to connect to under Windows, other
processes do not know which socket to communicate with. To get
around this problem in Windows, one can force the ssh-agent to
use a particularly named socket and have the name of the socket
available to all processes. Do this by picking a socket name,
such as
Now every shell you start will have the above environment variable. Now start the ssh-agent forcing it to use this socket as:
Since all shells have the File Transfer
To transfer files from a Linux machine, the standard Windows
On Windows machines using PuTTY, the
If you use the
|
Report problems or send comments to RCF Webmaster.
Maintained by Tom Throwe.
This document last modified Wednesday October 10, 2007