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 tries to authenticate, the client sends a signature to the server, and the server checks for matching public keys. If the key is protected with a passphrase, the server requests the user to enter the passphrase.
Remember that your private-key file is used to authenticate you. Keep your private-key file in a secure place and make sure that no one else has access to it. If anyone else can access your private-key file, they can attempt to log in to the remote host computer pretending to be you. Define a passphrase to protect your private key, whenever possible. On a machine shared by several users, make sure that the permission settings do not allow others to access your private key.
Do not store your private keys in a location accessible to other users.
Also note that if you are using the Windows roaming profiles functionality, your personal settings will be replicated with the roaming profile server. If you store your private keys in the default location (under the profile folder of your Windows user account) your private keys may be susceptible to a malicious user listening to the network traffic. Therefore the User Settings folder should not be a directory that is used in profile roaming.
To use public-key authentication with SSH Tectia Client, do the following actions:
Generate a key pair. You can generate your own key files with the help of a built-in Key Generation wizard on Windows (see Creating Keys with the Key Generation Wizard (Windows)), or with ssh-keygen-g3 on Unix or Windows command line (see Creating Keys with ssh-keygen-g3).
On Windows, you can also import existing keys on the Keys and Certificates page of the SSH Tectia Configuration tool. See Managing Keys and Certificates.
Upload your public key to the remote host computer. On Windows, you can do this automatically (see Uploading Public Keys Automatically (Windows)). On Unix and Windows, you can also copy the public key manually (see Uploading Public Keys Manually).
In the following instructions,
Server is the remote host
running the Secure Shell server that you are trying to connect to.
ServerUser is the username on
Server that you are
logging in as.
Client is the host running the Secure Shell
client (SSH Tectia Client).
ClientUser is the username on
Client that should be allowed to log in to
ServerUser. See Figure 5.3.
The instructions assume that
ClientUser is allowed to log
ServerUser using some other
authentication method (usually password).