🚧 连接sftp.

This commit is contained in:
lijiahang
2024-02-04 18:17:39 +08:00
parent de82a94f13
commit b4ceb3839c
26 changed files with 385 additions and 293 deletions

View File

@@ -45,7 +45,8 @@ export default class TerminalSessionManager implements ITerminalSessionManager {
// 发送会话初始化请求
this.channel.send(InputProtocol.CHECK, {
sessionId,
hostId
hostId,
connectType: 'SSH'
});
return session;
}

View File

@@ -3,7 +3,7 @@ export const InputProtocol = {
// 主机连接检查
CHECK: {
type: 'ck',
template: ['type', 'sessionId', 'hostId']
template: ['type', 'sessionId', 'hostId', 'connectType']
},
// 连接主机
CONNECT: {
@@ -25,11 +25,6 @@ export const InputProtocol = {
type: 'rs',
template: ['type', 'sessionId', 'cols', 'rows']
},
// 执行
EXEC: {
type: 'e',
template: ['type', 'sessionId', 'command']
},
// 输入
INPUT: {
type: 'i',