Back to product page

PublicKeySSH property


Returns public key in SSH / Tectia format.

Type

A String value.

Syntax

  • Basic
object.PublicKeySSH(KeyType)
The PublicKeySSH(object,KeyType) syntax has these parts:
objectAn expression evaluating to an object of type SSHKeyPair.
KeyTypeRequired. A SSHKeyTypes enumeration, as described in settings. Type of the key (RSA, DSA or ECDSA).

Remarks

The settings for KeyType are:

Constant Value Description
RSAkey0 Uses RSA cipher to create keys.
DSAkey 1 Uses DSA cipher to create keys.
ECDSAkey 2 Uses ECDSA cipher to create keys.

PublicKeySSH will return string information that represents stored public key in format suitable for SSH / Tectia servers. Typically, it will look like this:

---- BEGIN SSH2 PUBLIC KEY ----
AAAAB3NzaC1kc3MAAACBAKzHYPgw/VvUWHooW0iyKYPYVfaTZSDlHZaUEsHOAvdln+6aQw
..........
oRi1V/3n//AAypdXkAN8BSBrsb4V4AVdzHpvXSdHh9C+TlRUH1Ls72Kl929+4jMZmWDXGw O5ns8NPAJZvOxnZKZA==
---- END SSH2 PUBLIC KEY ----

You can easily paste contents of this property to file on your server system that keeps public keys.


Platforms

Windows