Back to product page
PublicKeyLoad method
Loads public key from the file.
Type
NoneSyntax
- Basic
object.PublicKeyLoad Filename
The PublicKeyLoad(object,Filename) syntax has these parts:
The PublicKeyLoad(object,Filename) syntax has these parts:
object | An expression evaluating to an object of type Keys. |
Filename | Required. A String value. Full path to file where key is stored. |
Remarks
PublicKeyLoad method will try to Load public key in memory. It cannot be used directly by wodSSH/wodSFTP (or any other WeOnlyDo! product), but can be used to convert public keys (generated by 3rd party software) to OpenSSH or SSH format, as required by SSH servers.Public key should be in X509 PEM format. PEM format is simply base64 encoded data surrounded by header lines (this is the format that is used in Save method) and is widely supported by different SSH implementations. Typical structure looks like this:
-----BEGIN PUBLIC KEY-----
bKxPNDjHoqW4wT46OnYnDWtJnhwhqRIh81o9IAjjrrlRRDQf9kefDFuciKBrJCqK
................................................................
(...more...)
................................................................
ViWBhtNOV1Wzm3Ifv9ekm6cd1TjPO2UP/Vi5/Xz4PQ+maA7c1QXbdXGF29fc2VFI
JQKZxKKEfirZntyOH6chDQGeYnB7mXLpRNnNb7g=
-----END PUBLIC KEY-----