Configure SSH Communications to Recognize Public-Key File

SecureCRT


In order to use your public key, you must transfer the public identity file Identity files are two files containing the public-private key pair used to connect to an SSH server using RSA or DSA authentication. The Identity file contains the public and private key pair and is used by SecureCRT. The Identity.pub file contains only the public key which is usually appended to the authorized_keys file. (generally Identity.pub) created by the Key Generation wizard to the ~/.ssh2 folder on the SSH2 The second version of the SSH protocol which provides a way to encrypt network traffic between a client and a server, with a slightly different set of security features than the SSH1 protocol provides.   server A computer program that provides services to other computer programs (called clients). Often the computer on which a server program runs is also called a server. The term host is often used as a synonym for server. . It is recommended that you follow the procedure below for using copy and paste to create a copy of the Identity.pub file in the ~/.ssh2 folder on the remote machine. If you decide instead to transfer the Identity.pub file to the ~/.ssh2 folder using an FTP client A computer or application that uses services provided by a server. , be sure to transfer the file in ASCII mode. Also be sure to complete step 4-d below.

To use copy and paste to configure the SSH2 server to recognize your Identity.pub file:

1.   Log on to the remote SSH2 server using SSH2 and password authentication The process of verifying that an individual truly is who he or she claims to be. Supplying a password is a very common method of authentication. The most secure method of authentication supported in SecureCRT is public-key authentication. See also: identity file, public-private key pair. .

2.   On the local machine, use Notepad.exe to open the Identity.pub file that was created with the Key Generation wizard.

3.   With the Identity.pub file opened in the Notepad application, open the Edit menu and choose Select All. Once everything is selected, open the Edit menu again and select Copy.

4.   On the remote machine, complete the following steps:

a.    % cat > ~/.ssh2/identity.pub

b.   Click on the SecureCRT paste button Generate/button-paste.gif to paste the contents of the Clipboard (which should now contain the contents of your Identity.pub file).

c.   Issue a CTRL+D to close the Identity.pub file. Once you have typed CTRL+D, the Identity.pub file will have been created in the ~/.ssh2 folder on the remote machine.

d.    % echo "Key identity.pub" >> ~/.ssh2/authorization

Return to Public-Key Authentication for SSH2