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