Class SSHClientHelper

java.lang.Object
hudson.plugins.ec2.util.SSHClientHelper

public final class SSHClientHelper extends Object
  • Method Details

    • getInstance

      public static SSHClientHelper getInstance()
    • setupSshClient

      public org.apache.sshd.client.SshClient setupSshClient(EC2Computer computer)
      Set up an SSH client configured for the given EC2Computer.
      Parameters:
      computer - the EC2Computer the created client will connect to
      Returns:
      an SSH client configured for this EC2Computer
    • getPreferredSignatures

      public List<org.apache.sshd.common.signature.BuiltinSignatures> getPreferredSignatures(EC2Computer computer)
      Return an ordered list of signature algorithms that should be used. Noticeably, if a HostKey already exists for this EC2Computer, the HostKey algorithm will be attempted first.
      Parameters:
      computer - return a list of signature for this computer.
      Returns:
      an ordered list of signature algorithms that should be used.