|
||||||||||||||
|
SSH Authentication Using Key-Pairs |
|||||||||||||
|
Public key authentication is based on the use of digital signatures. Each user creates a pair of 'key' files. One of these key files is the user's public key, and the other is the user's private key. The server knows the user's public key, and only the user has the private key. When the user attempts authentication, the server checks for a matching public key and sends a challenge to the user end. Signing the challenge using a private key authenticates the user. Remember that your private key file is used to authenticate you. Protect your private key! If anyone else can access your private key file, they can attempt to login to the remote host computer as you, and claim to be you. Therefore it is extremely important that you keep your private key file in a secure place and make sure that no one else has access to it. It is also a good idea to use a passphase to protect your private key. Do not use public key authentication on a shared or public computer! Windows SSH clientClick here for documentation on using the Widows SSH client to generate and use a key pair. Unix SSH clientIn this example, we are configuring spot.colorado.edu to connect to stripe.colorado.edu as user jdoe. Both spot and stripe are running the commercial version of SSH. First, create the key pair on spot.
Next, copy the public key to stripe.
Configuring the ssh client on spot to use the key pair requires you to create the file $HOME/.ssh2/identification that contains the following:
Now, ssh, scp, or sftp should work.
|
|
||||||||||||
| Support | | | Training | | | Facilities | | | About ITS | | | ITS Home | |||
|
|||||||||||