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}

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

Source:
Returns:
Type
String

setPrivateKey(key, password)

Description:
  • Set up the server key for the current site.

Source:
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.