Esempio n. 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);
        }
Esempio n. 2
0
 public ISshClient Connect(SshConnection sshConnection)
 {
     this.sshConnection = sshConnection;
     return(this);
 }