Key Management

SecureCRT supports public-key authentication using DSA or RSA keys. It can generate keys with a built-in wizard (in SECSH format, compatible with Tectia [6.1.2]), or you can import existing keys. It also distinguishes between two different types of SSH identities: global and session-specific. Finally, SecureCRT includes an SSH agent and supports OpenSSH-style agent forwarding.

SecureCRT's Key Generation Wizard creates key pairs for public-key authentication. The utility is run in the Tools menu by selecting Create Public Key. Equivalently, from the Global Options window, under SSH2 or SSH1,[183] click Create Identity File.

Operation is straightforward. All you need to supply are the passphrase, the number of bits in the key, and some random data by moving your mouse around the screen. The RSA Key Generation Wizard then creates a key pair and stores it in two files. As with the Unix SSH implementations, the private key filename is anything you choose (say, mykey), and its corresponding public-key filename is the same with .pub added (e.g., mykey.pub).

Once your key pair is generated, you need to copy the public key to the SSH server machine, storing it in your account's authorization file. [6.1] SecureCRT can do this automatically, or you can do it manually.

SecureCRT supports two types of SSH identities. Your global identity is the default for all SecureCRT sessions, and is found on the Global Options window, under SSH2 or SSH1 ("Use identity file").

You may override the default by using a session-specific identity that may differ (as the name implies) for each session you define:

SecureCRT comes with an SSH agent for holding your SSH keys in memory, so you don't have to type your passphrase. (We cover agents in Chapter 6.)

SecureCRT's agent is the simplest to use of any SSH implementation we've seen. Simply open the Global Options window, select SSH2, and place a checkmark next to "Add keys to agent." From that point onward, each time you enter a passphrase for a key, the decrypted key will be stored in the agent, so you won't have to reenter the passphrase.

To enable SecureCRT's agent forwarding, which works with OpenSSH and VanDyke's own VShell servers only, open the Global Options window and select SSH2. Then place a checkmark next to "Enable OpenSSH agent forwarding." [6.3.5]

You might also notice that SecureCRT offers to remember login passwords when you use password authentication. This is not the same as using an agent: your login password on the remote machine has nothing to do with keys and passphrases on the local machine.



[183] VanDyke uses the terms "SSH1" and "SSH2" to mean the protocols SSH-1 and SSH-2, respectively.