home‎ > ‎manage infx‎ > ‎

infx keygen

Use this command to generate a key pair for this server. The public portion of this key can be sent to other hosts to allow ssh to execute without needing a password.

This example is based on openssh.org, check your documentation for any differences or other requirements

You only generate this key once for a server.

usage

infx keygen [ encrypt=rsa|dsa file passwd ]
       optional:
         encrypt - the type of encryption to use
         file - enter the file name
         passwd - enter a password to set

example

demo1@bobii:/home/informix>infx keygen

execute: ssh-keygen -t rsa -f id_rsa -N ""
Generating public/private rsa key pair.
Your identification has been saved in id_rsa.
Your public key has been saved in id_rsa.pub.
The key fingerprint is:
dc:93:0f:61:b0:a1:df:de:19:19:72:db:88:b7:27:60 informix@bobii
The key's randomart image is:
+--[ RSA 2048]----+
| o |
| . + |
| . . + o |
| o + * * |
| S E * . |
| o B + |
| . * . |
| o |
| |
+-----------------+
completed: ssh-keygen -t rsa -f id_rsa -N ""

This generated a private and public key using rsa, the private/public files are:

 type  file description
 private  /home/infomrix/.ssh/id_rsa  the private key, keep secret on this server
 public  /home/infomrix/.ssh/id_rsa.pub
 the public key, send this to remote hosts to allow access without a password

generate a different key

You can specify the type of encryption to use, as well as the location of the public/private key files. For example, build a dsa key pair, store it in id_dsa/id_dsa.pub

demo1@bobii:/home/informix>infx keygen encrypt=dsa file=id_dsa

execute: ssh-keygen -t dsa -f id_dsa -N ""
Generating public/private dsa key pair.
Your identification has been saved in id_dsa.
Your public key has been saved in id_dsa.pub.
The key fingerprint is:
4c:6e:4e:55:95:c1:be:9e:5b:c3:57:d4:42:c8:da:f4 informix@bobii
The key's randomart image is:
+--[ DSA 1024]----+
| ..++o |
| .+.o .|
| . .+ o. o|
| + .. . Eo |
| S ..|
| + o .|
| . . +o|
| o.o|
| .. |
+-----------------+
completed: ssh-keygen -t dsa -f id_dsa -N ""

notes

  • see infx keysend for information on how to send the key to other hosts
  • see setup ssh keys for more information about setting up ssh