ssh-keygen的手册页:
ssh-keygen generates, manages and converts authentication keys for
ssh(1). ssh-keygen can create RSA keys for use by SSH protocol version 1
and DSA, ECDSA or RSA keys for use by SSH protocol version 2. The type
of key to be generated is specified with the -t option. If invoked with-
out any arguments, ssh-keygen will generate an RSA key for use in SSH
protocol 2 connections.
-t type
Specifies the type of key to create. The possible values are
'rsa1' for protocol version 1 and 'dsa', 'ecdsa' or 'rsa'
for protocol version 2.
-f filename
Specifies the filename of the key file.
-N new_passphrase
Provides the new passphrase.
-b bits
Specifies the number of bits in the key to create. For RSA keys,
the minimum size is 768 bits and the default is 2048 bits. Gen-
erally, 2048 bits is considered sufficient. DSA keys must be ex-
actly 1024 bits as specified by FIPS 186-2. For ECDSA keys, the
-b flag determines they key length by selecting from one of three
elliptic curve sizes: 256, 384 or 521 bits. Attempting to use
bit lengths other than these three values for ECDSA keys will
fail.
阅读(628) | 评论(0) | 转发(0) |