Class SshUtil

java.lang.Object
net.sf.basedb.opengrid.SshUtil

public final class SshUtil extends Object
Interal class with utility functions for SSH connections.
Since:
1.0
Author:
nicklas
  • Field Details

    • SSH_CONFIG

      static final net.schmizz.sshj.Config SSH_CONFIG
      Default configuration for SSH connections. We save this as a static to avoid expensive initialization each time a connection is needed.
    • FINGERPRINT_PATTERN

      @Deprecated public static final Pattern FINGERPRINT_PATTERN
      Deprecated.
      Pattern that matches a SSH fingerprint: 16 pairs of hexadecimal numbers separated with colon.
  • Constructor Details

    • SshUtil

      public SshUtil()
  • Method Details

    • getFingerPrintType

      public static final String getFingerPrintType(String fingerprint)
      Check if the given fingerprint is valid and what type it is.
      Parameters:
      fingerprint - The fingerprint to check
      Returns:
      MD5 or SHA256 or null
      Since:
      1.1