C# Class GitSharp.Core.Transport.SshConfigSessionFactory

The base session factory that loads known hosts and private keys from $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. The factory does not provide UI behavior. Override the method configure to supply appropriate {@link UserInfo} to the session.
Inheritance: SshSessionFactory
Mostrar archivo Open project: jagregory/GitSharp

Public Methods

Method Description
getSession ( string user, string pass, string host, int port ) : Session

Protected Methods

Method Description
configure ( OpenSshConfig hc, Session session ) : void
createDefaultJSch ( ) : JSch
createSession ( OpenSshConfig hc, string user, string host, int port ) : Session
getJSch ( OpenSshConfig hc ) : JSch

Private Methods

Method Description
getConfig ( ) : OpenSshConfig
getDefaultJSch ( ) : JSch
identities ( JSch sch ) : void
knownHosts ( JSch sch ) : void
loadIdentity ( JSch sch, FileInfo priv ) : void

Method Details

configure() protected abstract method

protected abstract configure ( OpenSshConfig hc, Session session ) : void
hc OpenSshConfig
session Session
return void

createDefaultJSch() protected static method

protected static createDefaultJSch ( ) : JSch
return JSch

createSession() protected method

protected createSession ( OpenSshConfig hc, string user, string host, int port ) : Session
hc OpenSshConfig
user string
host string
port int
return Session

getJSch() protected method

protected getJSch ( OpenSshConfig hc ) : JSch
hc OpenSshConfig
return JSch

getSession() public method

public getSession ( string user, string pass, string host, int port ) : Session
user string
pass string
host string
port int
return Session