Class PropertyBasedSshSessionFactory

java.lang.Object
org.eclipse.jgit.transport.SshSessionFactory
org.eclipse.jgit.transport.sshd.SshdSessionFactory
org.springframework.cloud.config.server.ssh.PropertyBasedSshSessionFactory
All Implemented Interfaces:
Closeable, AutoCloseable

public class PropertyBasedSshSessionFactory extends org.eclipse.jgit.transport.sshd.SshdSessionFactory
In a cloud environment local SSH config files such as `.known_hosts` may not be suitable for providing configuration settings due to ephemeral filesystems. This flag enables SSH config to be provided as application properties
Author:
William Tran, Ollie Hughes
  • Constructor Details

  • Method Details

    • createSshConfigStore

      protected org.eclipse.jgit.transport.SshConfigStore createSshConfigStore(File homeDir, File configFile, String localUserName)
      Overrides:
      createSshConfigStore in class org.eclipse.jgit.transport.sshd.SshdSessionFactory
    • getSshConfig

      protected File getSshConfig(File dir)
      Overrides:
      getSshConfig in class org.eclipse.jgit.transport.sshd.SshdSessionFactory
    • getServerKeyDatabase

      protected org.eclipse.jgit.transport.sshd.ServerKeyDatabase getServerKeyDatabase(File homeDir, File dir)
      Overrides:
      getServerKeyDatabase in class org.eclipse.jgit.transport.sshd.SshdSessionFactory
    • getDefaultKeys

      protected Iterable<KeyPair> getDefaultKeys(File dir)
      Overrides:
      getDefaultKeys in class org.eclipse.jgit.transport.sshd.SshdSessionFactory