| Package | Description |
|---|---|
| co.cask.cdap.runtime.spi.ssh |
| Modifier and Type | Method and Description |
|---|---|
default SSHKeyPair |
SSHContext.generate(String user)
Generates a 2048 bits RSA secure key pair for SSH operations.
|
SSHKeyPair |
SSHContext.generate(String user,
int bits)
Generates a RSA secure key pair for SSH operations.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<SSHKeyPair> |
SSHContext.getSSHKeyPair()
Returns the
SSHKeyPair that were set earlier via the SSHContext.setSSHKeyPair(SSHKeyPair) method during the
Provisioner.createCluster(ProvisionerContext) time. |
| Modifier and Type | Method and Description |
|---|---|
default SSHSession |
SSHContext.createSSHSession(SSHKeyPair keyPair,
String host)
Creates a
SSHSession to the given host. |
void |
SSHContext.setSSHKeyPair(SSHKeyPair sshKeyPair)
Sets the SSH key pair for the platform to communicate with the cluster in future.
|
Copyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.