Example #1
0
 public void setSshSessionFactory(SshSessionFactory factory)
 {
     if (factory == null)
         throw new ArgumentException("The factory must not be null");
     if (sock != null)
         throw new ApplicationException("An SSH session has already been created");
     sch = factory;
 }
Example #2
0
 protected SshTransport(Repository local, URIish uri)
     : base(local, uri)
 {
     sch = SshSessionFactory.Instance;
 }