Methods
| Method | Returns | Description |
|---|---|---|
| getPublicKey() | String | Returns a string representing the server's public key in OpenSSH format of the current site. |
| setPrivateKey() | void | Set up the server key for the current site. |
Method Details
getPublicKey() → {String}
- Description:
Returns a string representing the server's public key in OpenSSH format of the current site.
Returns:
- Type
- String
setPrivateKey(key, password)
- Description:
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. |