예제 #1
0
        public IInterruptable AsyncSSHConnect(IInterruptableConnectorClient result_client, SSHLoginParameter destination)
        {
            _sshParam = destination;
            InterruptableConnector swt = new SSHConnector(destination, new HostKeyVerifierBridge());

            //ITCPParameter tcp = new SSHLoginParameter(destination); // (ITCPParameter)destination.GetAdapter(typeof(ITCPParameter));
            swt.AsyncConnect(result_client, (ITCPParameter)destination);
            return(swt);
        }
예제 #2
0
 public SSHLoginParameter(SSHLoginParameter src)
     : base(src)
 {
     _method               = src._method;
     _authType             = src._authType;
     _account              = src._account;
     _identityFile         = src._identityFile;
     _passwordOrPassphrase = src._passwordOrPassphrase;
     _letUserInputPassword = src._letUserInputPassword;
     _agentForward         = src._agentForward;
 }
예제 #3
0
 public SSHConnector(SSHLoginParameter destination, HostKeyVerifierBridge keycheck)
 {
     _destination = destination;
     _keycheck    = keycheck;
 }