Beispiel #1
0
        protected ConnectionInfo GetConnectionInfo(SshConnection sshConnection)
        {
            var connectionInfo = new ConnectionInfo(
                sshConnection.SshUri.Host,
                sshConnection.SshUri.Port,
                sshConnection.User,
                new PasswordAuthenticationMethod(sshConnection.User, sshConnection.Password));

            return(connectionInfo);
        }
Beispiel #2
0
 public ISshClient Connect(SshConnection sshConnection)
 {
     this.sshConnection = sshConnection;
     return(this);
 }