🚧 连接sftp.
This commit is contained in:
@@ -45,7 +45,8 @@ export default class TerminalSessionManager implements ITerminalSessionManager {
|
||||
// 发送会话初始化请求
|
||||
this.channel.send(InputProtocol.CHECK, {
|
||||
sessionId,
|
||||
hostId
|
||||
hostId,
|
||||
connectType: 'SSH'
|
||||
});
|
||||
return session;
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user