HP TCP/IP Services for OpenVMS Guide to SSH |
Customizing the SSH Run-Time Environment |
|
|
|
| |
Customizing the User Environment on the SSH Client Host
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:
If you copy the keys, they must be in STREAM_LF
record format and have proper access privileges, for example S:RWED,O:RWED,G:RE,W:R.The key-generation utility creates all key files in STREAM_LF format. When the SSH server transfers the server's host key file to a client host, the resulting file is formatted correctly. However, setting up the SSH environment sometimes requires that you manually copy public key files (whether host or user) between the SSH client and server hosts. For example, when using public-key authentication, the key file must be copied to an OpenVMS system. In these cases, FTP, for example, may create a variable-length record file. If this occurs, the user or system manager must convert this file to STREAM_LF format using the OpenVMS Convert utility. Failure to convert the file will cause key-processing errors. |
ask -- Causes the SSH server to prompt the user for a copy
of the server's public host key. For example: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 , 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.yes
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.
|
|
|