コード例 #1
0
ファイル: RenciSshClient.cs プロジェクト: emallard/ci
        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);
        }
コード例 #2
0
ファイル: RenciSshClient.cs プロジェクト: emallard/ci
 public ISshClient Connect(SshConnection sshConnection)
 {
     this.sshConnection = sshConnection;
     return(this);
 }