Class SshdContainer

java.lang.Object
org.jenkinsci.test.acceptance.docker.DockerContainer
org.jenkinsci.test.acceptance.docker.fixtures.SshdContainer
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
JavaContainer

public class SshdContainer extends DockerContainer
Represents a server with SSHD.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • SshdContainer

      public SshdContainer()
  • Method Details

    • getPrivateKey

      public File getPrivateKey()
      Get plaintext Private Key File
    • getEncryptedPrivateKey

      public File getEncryptedPrivateKey()
      Get encrypted Private Key File
    • getPrivateKeyString

      public String getPrivateKeyString()
    • ssh

      public org.jenkinsci.utils.process.CommandBuilder ssh()
      Gets the SSH command line via unencrypted key.
    • sshWithPublicKey

      public void sshWithPublicKey(org.jenkinsci.utils.process.CommandBuilder cmd) throws IOException, InterruptedException
      Login with SSH public key and run some command.
      Throws:
      IOException
      InterruptedException
    • popen

      public org.jenkinsci.utils.process.ProcessInputStream popen(org.jenkinsci.utils.process.CommandBuilder cmd) throws IOException, InterruptedException
      Throws:
      IOException
      InterruptedException