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
Afficher le fichier Open project: jagregory/GitSharp

Méthodes publiques

Méthode Description
getSession ( string user, string pass, string host, int port ) : Session

Méthodes protégées

Méthode 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

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

Method Details

configure() protected abstract méthode

protected abstract configure ( OpenSshConfig hc, Session session ) : void
hc OpenSshConfig
session Session
Résultat void

createDefaultJSch() protected static méthode

protected static createDefaultJSch ( ) : JSch
Résultat JSch

createSession() protected méthode

protected createSession ( OpenSshConfig hc, string user, string host, int port ) : Session
hc OpenSshConfig
user string
host string
port int
Résultat Session

getJSch() protected méthode

protected getJSch ( OpenSshConfig hc ) : JSch
hc OpenSshConfig
Résultat JSch

getSession() public méthode

public getSession ( string user, string pass, string host, int port ) : Session
user string
pass string
host string
port int
Résultat Session