Esempio n. 1
0
 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‰Â”\‚Å‚È‚¢
     }
 }
Esempio n. 2
0
 //Keyboard-interactive‚̏ꍇA”FØ¬Œ÷Œã‚É‚±‚ê‚ðŽÀs
 internal void ReplaceSSHSocket(SSHSocket sshsocket)
 {
     _sshSocket      = sshsocket;
     _socket         = sshsocket;
     _terminalOutput = sshsocket;
 }