Description
-
Saves keys to the file.
Return Type
-
None
Syntax
-
object.Save KeyType,
Filename, [Password]
The Save Method syntax has these parts:
| object |
An expression
evaluating to an object of type SSHKeyPair. |
| KeyType |
Required. A SSHKeyTypes
enumeration, as described in settings. Type of the key
(RSA or DSA). |
| Filename |
Required. A String
value. Full path to file where key will be saved. |
| Password |
Optional. A Variant
value. Secret password that is used to protect the
key. |
Settings
-
The settings for KeyType are:
 |
RSAkey |
0 |
Uses RSA cipher to create
keys. |
 |
DSAkey |
1 |
Uses DSA cipher to create
keys. |
Remarks
-
Save method will store contents of private key from
memory to file on your disk drive. Key is saved using
PEM format, simply base64 encoded
data surrounded by header lines, which makes it exportable
(and importable) to other SSHD engines. Optionally (and
suggested) you can specify the password to be used when key
is written to disk, so only yourself (and the server) can
read saved key. Don't forget to use the same password
when Loading
key from disk.
Written file contains only plain ASCII
characters.
|