Package hudson.plugins.ec2.util
Class SSHClientHelper
java.lang.Object
hudson.plugins.ec2.util.SSHClientHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic SSHClientHelperList<org.apache.sshd.common.signature.BuiltinSignatures> getPreferredSignatures(EC2Computer computer) Return an ordered list of signature algorithms that should be used.org.apache.sshd.client.SshClientsetupSshClient(EC2Computer computer) Set up an SSH client configured for the givenEC2Computer.
-
Method Details
-
getInstance
-
setupSshClient
Set up an SSH client configured for the givenEC2Computer.- Parameters:
computer- theEC2Computerthe 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 aHostKeyalready exists for thisEC2Computer, theHostKeyalgorithm 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.
-