User's Manual

Solaris 9 Security CX-310-301 76
Generating a Client Key
The client generates a key pair (private and public keys) by using the ssh-keygen command. When this
command is run, the client has to enter a passphrase that is to be used to create the keys. An example is
shown below:
$ ssh-keygen
Enter file in which to save the key(/export/home/john/.ssh/id_rsa):
Generating public/private rsa key pair.
Enter passphrase(empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /export/home/john/.ssh/id_rsa.
Your public key has been saved in /export/home/john/.ssh/id_rsa.pub.
The key fingerprint is:
md5 1024 61:e5:81:a3:4d:81:aa:41:f4:ae:c4:89:02:8c:88:e4 john@ultra
Using ssh
Make a secure connection to another host, instead of a telnet connection by using the ssh command:
$ ssh john@ultra.mobileventures.homeip.net
Enter passphrase for key '/export/home/john/.ssh/id_dsa':
John@ultra.mobileventures.homeip.net's password:
Last login: Sat Apr 10 15:36:13 2004 from 192.168.1.3
$
Note that when strict authentication is in use, you will have to enter not only your SSH passphrase, but if
that is successful, also the password to actually login.