SSH Tectia

Generating the Host Key

The host public-key pair (1536-bit RSA) is generated during the installation of SSH Tectia Server. You only need to regenerate it if you want to change your host key pair.

The command-line tool ssh-keygen-g3 can be used to generate the host key pair. It can be used for creating the user key pairs as well.

On Unix, to (re)generate the host key, give the following command with root privileges:

# ssh-keygen-g3 -P -H hostkey

On Windows, to (re)generate the host key, give the following command:

ssh-keygen-g3.exe -P -H hostkey

This will generate a 2048-bit DSA key pair (without a passphrase) and save it in the default host key directory (/etc/ssh2 on Unix, "C:\Program Files\SSH Communications Security\SSH Tectia\SSH Tectia Server" on Windows) with the names hostkey and hostkey.pub. For more information on the key generation options, see ssh-keygen-g3(1).

After the new key pair has been created, run ssh-server-config-tool to reconfigure the server. See ssh-server-config-tool(8).

[Note]Note

The private key of the server must never be readable by anyone but root on Unix and by the Administrators group and the SYSTEM account on Windows. Store the private key in a safe directory where access is denied for all others.