Class: KeyPair

KeyPair

Provides methods for setting up the server SSH keys (RSA/DSA) for the current site. Instances of this class should be obtained using Site.sshKeyPairDSA or Site.sshKeyPairRSA.

Methods

getPublicKey() → {String}

Returns a string representing the server's public key in OpenSSH format of the current site.

Returns:
Type
String

setPrivateKey(key, password)

Set up the server key for the current site.

Parameters:
Name Type Description
key String

The server's private key in OpenSSH, SSH.com or Putty format.

password String

The password that protects the private key.