public SSHTerminalConnection(ISSHLoginParameter ssh) : base((ITCPParameter)ssh) { _sshLoginParameter = ssh; if (ssh.AuthenticationType != AuthenticationType.KeyboardInteractive) { SSHSocket s = new SSHSocket(this); _sshSocket = s; _socket = s; _terminalOutput = s; } else { KeyboardInteractiveAuthHanlder s = new KeyboardInteractiveAuthHanlder(this); _sshSocket = s; _socket = s; _terminalOutput = null; //‚Ü‚¾—˜—p‰Â”\‚Å‚È‚¢ } }
//Keyboard-interactive‚Ìê‡A”FجŒ÷Œã‚É‚±‚ê‚ðŽÀs internal void ReplaceSSHSocket(SSHSocket sshsocket) { _sshSocket = sshsocket; _socket = sshsocket; _terminalOutput = sshsocket; }