skip book previous and next navigation links
go up to top of book: HP TCP/IP Services for OpenVMS Guide to SSH HP TCP/IP Services for OpenVMS Guide to SSH
go to beginning of chapter: Customizing the SSH Run-Time Environment Customizing the SSH Run-Time Environment
 
go to next page: Customizing the User Environment on the Server HostCustomizing the User Environment on the Server Host
end of book navigation links

Customizing the User Environment on the SSH Client Host 



During configuration, the SSH2_CONFIG. file is copied to TCPIP$SSH_DEVICE:[TCPIP$SSH.SSH2]. When the user invokes the SSH command, the SSH client process reads the file and creates the run-time version of the configuration parameters. If you want a different set of parameters (user specific), then you need to create your own version of the configuration file in the user SSH directory.

The SSH client loads this file and modifies the run-time version of the parameters accordingly. You can copy this file from a UNIX or an OpenVMS system and then edit it, or create a new file. The file can be in either STREAM_LF or variable-length format.

Copying the Server's Public Host Key to the Client 

Any connection request from a client to an SSH server requires that the client obtain the server's public key. There are several ways to copy the server's public key to the client:

Host key not found from database.
Key fingerprint:
xikan-rokyr-miduc-zofut-nysig-ciryt-pyroc-fegil-zadyb-cokel-loxex
You can get a public key's fingerprint by running
$ ssh_keygen "-F" publickey.pub on the keyfile.
Are you sure you want to continue connecting (yes/no)?

If you respond yes, the SSH client automatically creates the subdirectory SYS$LOGIN:[SSH2.HOSTKEYS] (if it does not exist) and copies the server's public key into this directory.

If you do not specify the StrictHostKeyChecking option, the default is ask.

Naming Conventions for the Server's Public Host Key 

The server's public and host private key pair files by default are HOSTKEY and HOSTKEY.PUB. When you copy these these files manually, you must rename them following the proper naming conventions. (When SSH copies the files, the proper file name is assigned automatically.) The name of the remote SSH server's public key on the client host must be in the following format:KEY_port_hostname.PUB

The port is typically 22. The hostname is the name of the remote SSH server. For example, when you copy the public key from the remote SSH server MYSERVER to the client host, the key name becomes: KEY_22_MYSERVER.PUB. If the remote server's name uses dot notation in its name (for example, MYSERVER.MYLAB.COM), SSH replaces the dots with underscores (for example, KEY_22_MYSERVER_MYLAB_COM.PUB).

Note that hostname corresponds to the form of the SSH server name to which the SSH client connects, with underscores replacing dots if a qualified host name is used. For example, you connect to a server using the following command:$ SSH USER@MYSERVER.MYLAB.COM

This command copies the remote SSH server's public key file HOSTKEY.PUB into a local directory as a file named KEY_22_MYSERVER_MYLAB_COM.PUB. Note that underscores replace the dots in the destination file.

If you copy these files manually, be sure to name the key files using this format. For example, if the server name is MYSERVER.MYLAB.COM, copy its HOSTKEY.PUB file to KEY_22_MYSERVER_MYLAB_COM.PUB in the appropriate directory.


 
go to next page: Customizing the User Environment on the Server HostCustomizing the User Environment on the Server Host