This commit is contained in:
xiaojunnuo
2026-04-17 00:56:21 +08:00
parent ee72d10718
commit cc73f156a7
2 changed files with 3 additions and 3 deletions
@@ -82,7 +82,7 @@ export class SshAccess extends BaseAccess {
@AccessInput({
title: "伪终端",
helper: "如果登录报错:all authentication methods failed,可以尝试开启伪终端模式进行keyboard-interactive方式登录\n开启后对日志输出有一定的影响",
helper: "如果登录报错:all authentication methods failed / unable to exec,可以尝试开启伪终端模式进行keyboard-interactive方式登录\n开启后对日志输出有一定的影响",
component: {
name: "a-switch",
vModel: "checked",
@@ -208,7 +208,7 @@ export class AsyncSsh2Client {
let hasErrorLog = false;
stream
.on("close", (code: any, signal: any) => {
this.logger.info(`[${this.connConf.host}][close]:code:${code}`);
this.logger.info(`[${this.connConf.host}][close]:code=${code}`);
/**
* ]pipeline 执行命令:[10.123.0.2][exec]:cd /d D:\nginx-1.27.5 && D:\nginx-1.27.5\nginx.exe -t && D:\nginx-1.27.5\nginx.exe -s reload
* [2025-07-09T10:24:11.219] [ERROR]pipeline - [10. 123.0. 2][error]: nginx: the configuration file D: \nginx-1.27. 5/conf/nginx. conf syntax is ok
@@ -279,7 +279,7 @@ export class AsyncSsh2Client {
}
stream
.on("close", (code: any) => {
this.logger.info("Stream :: close,code: " + code);
this.logger.info("Stream :: close,code = " + code);
resolve(output);
})
.on("data", (ret: Buffer) => {