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 Summary
ConstructorsConstructorDescriptionPropertyBasedSshSessionFactory(Map<String, JGitEnvironmentProperties> sshKeysByHostname) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.jgit.transport.SshConfigStorecreateSshConfigStore(File homeDir, File configFile, String localUserName) getDefaultKeys(File dir) protected org.eclipse.jgit.transport.sshd.ServerKeyDatabasegetServerKeyDatabase(File homeDir, File dir) protected FilegetSshConfig(File dir) Methods inherited from class org.eclipse.jgit.transport.sshd.SshdSessionFactory
close, createKeyPasswordProvider, createServerKeyDatabase, getConnectorFactory, getDefaultIdentities, getDefaultKnownHostsFiles, getDefaultPreferredAuthentications, getHomeDirectory, getKeyCache, getSession, getSshDirectory, getType, setHomeDirectory, setSshDirectoryMethods inherited from class org.eclipse.jgit.transport.SshSessionFactory
getInstance, getLocalUserName, releaseSession, setInstance
-
Constructor Details
-
PropertyBasedSshSessionFactory
-
-
Method Details
-
createSshConfigStore
-
getSshConfig
-
getServerKeyDatabase
-
getDefaultKeys
-