is a program that generates public and private keys.
Command-line options are described below.
The key's length in bits (default value is 1024).
Specifies the key's comment.
Specifies the key's filename (the default filename is "id_dsa_<bits>" (e.g., "id_dsa_1024") -- a matching "id_dsa_<bits>.pub" will also be created). If you have specified an ssh-rsa public-key type, the default filename will be "id_rsa_<bits>".
Changes the passphrase.
Quiets (suppresses) screen output.
Specifies the type of public key, either ssh-dss or ssh-rsa (ssh-dss is the default).
Tests the private key.
Exports public key portion of the private key.
The following are examples of how
can be used.
Generate new key pair
The example below will generate a new key pair with the name "keyfile".
vkeygen -b 2048 -f ~/keyfile -N "P4$$phr$s3"
Test new key
This example shows you how to test a new key.
vkeygen --test -f /home/user/keyfile
After you have entered the above command string, you will be prompted for your passphrase and, if the new key is valid, the result should be an "OK" response.
Change passphrase interactively
The string shown below will allow you to change your passphrase interactively.
vkeygen -p -f /home/user/keyfile
After entering the command string, you will be prompted for your current passphrase.
If the passphrase you enter is incorrect, you will be prompted to reenter. Note that passphrases are case sensitive; be sure that your CAPS LOCK is not on.
Once your passphrase is accepted, you will be prompted for a new passphrase and to confirm that new passphrase.
Change passphrase non-interactively
The string shown below will allow you to change your passphrase without having to answer prompts.
vkeygen -f ~/keyfile -p -N P4$$phr4s3 -P qwerty
The following are the locations of data files.
Public key files
The directory of these files is specified in the
file. By default, the location is $HOME/.vshell/publickey.
Note: To find an acceptable public key match,
(VShell(R) server for UNIX) will only look at files in the public key directory that end in .pub or that are named "authorized_keys".
will not check those files with names that begin with a period (.). For example, file.pub would be checked to see if it contains a valid key, where as, .x.pub would not.