Beispiel #1
0
        private ConnectionInfo GetConnectionInfo(SSHLogin loginInfo)
        {
            var privateKeyFile = new PrivateKeyFile(loginInfo.PrivateKeyFilePath);

            var connection = new ConnectionInfo(loginInfo.IPOrHostFQDN, loginInfo.User,
                                                new PrivateKeyAuthenticationMethod(loginInfo.User, privateKeyFile));

            return(connection);
        }
Beispiel #2
0
        public DeploymentPipeline Create(SSHLogin login)
        {
            var connection = GetConnectionInfo(login);
            var sftpClient = GetConnectedSftpClient(connection);
            var sshClient  = GetConnectedSSHClient(connection);


            var pipeline = new DeploymentPipeline(sftpClient, sshClient, pipelineLogger);

            return(pipeline);
        }