Class SshCompatibilityUtils

java.lang.Object
com.sshtools.client.SshCompatibilityUtils

public class SshCompatibilityUtils extends Object
  • Constructor Details

    • SshCompatibilityUtils

      public SshCompatibilityUtils()
  • Method Details

    • getSupportedHostKeyAlgorithms

      public static String[] getSupportedHostKeyAlgorithms(String hostname, int port) throws com.sshtools.common.ssh.SshException, IOException
      Throws:
      com.sshtools.common.ssh.SshException
      IOException
    • getHostKey

      public static com.sshtools.common.ssh.components.SshPublicKey getHostKey(String hostname, int port) throws com.sshtools.common.ssh.SshException, IOException
      Throws:
      com.sshtools.common.ssh.SshException
      IOException
    • getSupportedHostKeys

      public static Set<com.sshtools.common.ssh.components.SshPublicKey> getSupportedHostKeys(String hostname, int port) throws com.sshtools.common.ssh.SshException, IOException
      Throws:
      com.sshtools.common.ssh.SshException
      IOException
    • getHostKey

      public static com.sshtools.common.ssh.components.SshPublicKey getHostKey(String hostname, int port, String algorithm) throws com.sshtools.common.ssh.SshException, IOException
      Throws:
      com.sshtools.common.ssh.SshException
      IOException
    • getRemoteConfiguration

      public static com.sshtools.common.ssh.SshConnection getRemoteConfiguration(String hostname, int port) throws IOException, com.sshtools.common.ssh.SshException
      Throws:
      IOException
      com.sshtools.common.ssh.SshException
    • getRemoteClient

      public static SshClient getRemoteClient(String hostname, int port, String username, String password, boolean tcpNoDelay) throws com.sshtools.common.ssh.SshException, IOException
      Throws:
      com.sshtools.common.ssh.SshException
      IOException