![]() |
![]() |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Chapter 11Using Solaris Secure Shell (Tasks)Solaris Secure Shell enables a user to securely access a remote host over an unsecured network. The shell provides commands for remote login and remote file transfer. The following is a list of the information in this chapter. Introduction to Solaris Secure ShellIn Solaris Secure Shell, authentication is provided by the use of passwords, public keys, or both. All network traffic is encrypted. Thus, Solaris Secure Shell prevents a would-be intruder from being able to read an intercepted communication or from spoofing the system. Solaris Secure Shell can also be used as an on-demand virtual private network, or VPN. A VPN can forward X Window system traffic or connect individual port numbers between the local machines and remote machines over an encrypted network link. With Solaris Secure Shell, you can perform these actions:
Solaris Secure Shell supports two versions of the Secure Shell protocol. Version 1 is the original version of the protocol. Version 2 is more secure, and amends some of the basic security design flaws of Version 1. Version 1 is provided only to assist users who are migrating to Version 2. Users are strongly discouraged from using Version 1. Note - Hereafter in this text, v1 is used to represent Version 1, and v2 is used to represent Version 2. The requirements for Solaris Secure Shell authentication are as follows:
The following table shows the authentication methods, the compatible protocol versions, the local host and remote host requirements, and the relative security. Note that the default method is password-based authentication. Table 11-2 Authentication Methods for Solaris Secure Shell
Using Solaris Secure Shell (Task Map)
Using Solaris Secure Shell
|
myLocalHost% ssh-keygen Generating public/private rsa key pair. ... |
Enter the path to the file that will hold the key.
By default, the file name id_rsa, which represents an RSA v2 key, appears in parentheses. You can select this file by pressing the Return key. Or, you can type an alternative filename.
Enter file in which to save the key (/home/johndoe/.ssh/id_rsa): <Return> |
The public key name is created automatically. The string .pub is appended to the private key name.
Enter a passphrase for using your key.
This passphrase is used for encrypting your private key. A good passphrase is 10-30 characters long, mixes alphabetic and numeric characters, and avoids simple English prose and English names. A null entry means no passphrase is used. A null entry is strongly discouraged for user accounts. Note that the passphrase is not displayed when you type it in.
Enter passphrase (empty for no passphrase): <Type the passphrase> |
Re-enter the passphrase to confirm it.
Enter same passphrase again: <Type the passphrase> Your identification has been saved in /home/jdohnoe/.ssh/id_rsa. Your public key has been saved in /home/johndoe/.ssh/id_rsa.pub. The key fingerprint is: 0e:fb:3d:57:71:73:bf:58:b8:eb:f3:a3:aa:df:e0:d1 johndoe@myLocalHost |
Check the results.
The key fingerprint, which is a colon-separated series of 2-digit hexadecimal values, is displayed. Check that the path to the key is correct. In the example, the path is /home/johndoe/.ssh/id_rsa.pub. At this point, you have created a public/private key pair.
Set up the authorized_keys file on the destination host.
Copy the id_rsa.pub file to the destination host. Type the command on one line with no backslash.
myLocalHost% cat $HOME/.ssh/id_rsa.pub | ssh myRemoteHost \ 'cat >> .ssh/authorized_keys && echo "Key uploaded successfully."' |
When you are prompted, supply your login password.
When the file is copied, the phrase "Key uploaded successfully." is displayed.
Previous Contents Index Next ![]() |