public class DefaultSshSessionFactory extends JschConfigSessionFactory
$HOME/.ssh
.
This is the default implementation used by JGit and provides most of the compatibility necessary to match OpenSSH, a popular implementation of SSH used by C Git.
If user interactivity is required by SSH (e.g. to obtain a password), the connection will immediately fail.
Constructor and Description |
---|
DefaultSshSessionFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure(OpenSshConfig.Host hc,
com.jcraft.jsch.Session session)
Provide additional configuration for the session based on the host
information.
|
configureJSch, createDefaultJSch, createSession, getJSch, getSession
getInstance, getLocalUserName, releaseSession, setInstance
protected void configure(OpenSshConfig.Host hc, com.jcraft.jsch.Session session)
UserInfo
.configure
in class JschConfigSessionFactory
hc
- host configurationsession
- session to configureCopyright © 2020 Eclipse JGit Project. All rights reserved.