public class SshdContainer extends DockerContainer
| Constructor and Description |
|---|
SshdContainer() |
| Modifier and Type | Method and Description |
|---|---|
File |
getEncryptedPrivateKey()
Get encrypted Private Key File
|
File |
getPrivateKey()
Get plaintext Private Key File
|
String |
getPrivateKeyString() |
org.jenkinsci.utils.process.ProcessInputStream |
popen(org.jenkinsci.utils.process.CommandBuilder cmd) |
org.jenkinsci.utils.process.CommandBuilder |
ssh()
Gets the SSH command line via unencrypted key.
|
void |
sshWithPublicKey(org.jenkinsci.utils.process.CommandBuilder cmd)
Login with SSH public key and run some command.
|
assertRunning, close, cp, getCid, getIpAddress, getLogfile, getPid, inspect, ipBound, port, resource, sharingHostDockerService, toStringpublic File getPrivateKey()
public File getEncryptedPrivateKey()
public String getPrivateKeyString()
public org.jenkinsci.utils.process.CommandBuilder ssh()
public void sshWithPublicKey(org.jenkinsci.utils.process.CommandBuilder cmd)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic org.jenkinsci.utils.process.ProcessInputStream popen(org.jenkinsci.utils.process.CommandBuilder cmd)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionCopyright © 2004–2017. All rights reserved.