pull/78/head
xiaojunnuo 2024-06-25 11:27:13 +08:00
parent 6ee4dc165b
commit 54ad09f755
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ export class SshClient {
uploadFiles(options: { connectConf: ConnectConfig; transports: any }) {
const { connectConf, transports } = options;
const conn = new ssh2.Client();
this.logger.info('开始连接服务器');
return new Promise((resolve, reject) => {
conn
.on('ready', () => {

View File

@ -111,7 +111,7 @@ export class UploadCertToHostPlugin extends AbstractTaskPlugin {
if (!accessId) {
throw new Error('主机登录授权配置不能为空');
}
this.logger.info('开始连接服务器');
this.logger.info('准备上传到服务器');
const connectConf = await this.accessService.getById(accessId);
const sshClient = new SshClient(this.logger);
await sshClient.uploadFiles({