Open yulunyue opened 4 years ago
I want to upload some files to multiple servers Use the following configuration
{ "name": "dy", "protocol": "sftp",
"host": ". . . ", "port": 22, "username": "root", "privateKeyPath": "F: \ ssh \ dyKey", "remotePath": "/ root / web", "hop": { "host": ". . . ", "privateKeyPath": "F: \ ssh \ fyjKey", "username": "root", "port": 22 }, "ignore": [ ".vscode", ".git", ".DS_Store" ], "uploadOnSave": true } I uploaded the two servers separately and both succeeded, and the privateKeyPath is correct
The error message is as follows
[01-04 12:48:50] [debug] Client: none auth failed [01-04 12:48:50] [debug] Outgoing: Writing USERAUTH_REQUEST (publickey-check) [01-04 12:48:50] [debug] Outgoing: Writing USERAUTH_REQUEST (publickey) [01-04 12:48:50] [debug] Outgoing: Writing CHANNEL_OPEN (0, session) [01-04 12:48:51] [debug] Outgoing: Writing CHANNEL_REQUEST (0, subsystem: sftp) [01-04 12:48:51] [debug] Outgoing: Writing CHANNEL_DATA (0) [01-04 12:48:51] [info] hopping from 122.112.201.243 to 47.104.107.242 [01-04 12:48:51] [debug] Outgoing: Writing CHANNEL_OPEN (1, direct-tcpip) [01-04 12:48:51] [debug] Outgoing: Writing OPEN [01-04 12:48:51] [debug] Outgoing: Writing CHANNEL_DATA (0) [01-04 12:48:51] [debug] Outgoing: Writing DISCONNECT (BY_APPLICATION) [01-04 12:48:51] [debug] Outgoing: Writing DISCONNECT (BY_APPLICATION) [01-04 12:48:51] [error] Error: No such file at SFTPStream._transform (c: \ Users \ 12854 \ .vscode \ extensions \ liximomo.sftp-1.12.9 \ node_modules \ ssh2-streams \ lib \ sftp.js: 412: 27) at SFTPStream.Transform._read (_stream_transform.js: 189: 10) at SFTPStream._read (c: \ Users \ 12854 \ .vscode \ extensions \ liximomo.sftp-1.12.9 \ node_modules \ ssh2-streams \ lib \ sftp.js: 183: 15) at SFTPStream.Transform._write (_stream_transform.js: 177: 12) at doWrite (_stream_writable.js: 417: 12) at writeOrBuffer (_stream_writable.js: 401: 5) at SFTPStream.Writable.write (_stream_writable.js: 301: 11) at Channel.ondata (_stream_readable.js: 713: 22) at Channel.emit (events.js: 200: 13) at addChunk (_stream_readable.js: 294: 12) at readableAddChunk (_stream_readable.js: 275: 11) at Channel.Readable.push (_stream_readable.js: 210: 10) at SSH2Stream. (c: \ Users \ 12854 \ .vscode \ extensions \ liximomo.sftp-1.12.9 \ node_modules \ ssh2 \ lib \ Channel.js: 167: 15) at SSH2Stream.emit (events.js: 200: 13) at parsePacket (c: \ Users \ 12854 \ .vscode \ extensions \ liximomo.sftp-1.12.9 \ node_modules \ ssh2-streams \ lib \ ssh.js: 3288: 10) at SSH2Stream._transform (c: \ Users \ 12854 \ .vscode \ extensions \ liximomo.sftp-1.12.9 \ node_modules \ ssh2-streams \ lib \ ssh.js: 694: 13) at SSH2Stream.Transform._read (_stream_transform.js: 189: 10) at SSH2Stream._read (c: \ Users \ 12854 \ .vscode \ extensions \ liximomo.sftp-1.12.9 \ node_modules \ ssh2-streams \ lib \ ssh.js: 253: 15) at SSH2Stream.Transform._write (_stream_transform.js: 177: 12) at doWrite (_stream_writable.js: 417: 12) at writeOrBuffer (_stream_writable.js: 401: 5) at SSH2Stream.Writable.write (_stream_writable.js: 301: 11) at Socket.ondata (_stream_readable.js: 713: 22) at Socket.emit (events.js: 200: 13) at addChunk (_stream_readable.js: 294: 12) at readableAddChunk (_stream_readable.js: 275: 11) at Socket.Readable.push (_stream_readable.js: 210: 10) at TCP.onStreamRead (internal / stream_base_commons.js: 166: 17) download f: \ Life \ python \ common \ web \ webapi.py [01-04 12:48:51] [debug] Outgoing: Writing CHANNEL_CLOSE (0) [01-04 12:48:51] [debug] Outgoing: Writing CHANNEL_CLOSE (1)
I'm having the same issue configuring hops
I want to upload some files to multiple servers Use the following configuration
{ "name": "dy", "protocol": "sftp",
"host": ". . . ", "port": 22, "username": "root", "privateKeyPath": "F: \ ssh \ dyKey", "remotePath": "/ root / web", "hop": { "host": ". . . ", "privateKeyPath": "F: \ ssh \ fyjKey", "username": "root", "port": 22 }, "ignore": [ ".vscode", ".git", ".DS_Store" ], "uploadOnSave": true } I uploaded the two servers separately and both succeeded, and the privateKeyPath is correct
The error message is as follows
[01-04 12:48:50] [debug] Client: none auth failed [01-04 12:48:50] [debug] Outgoing: Writing USERAUTH_REQUEST (publickey-check) [01-04 12:48:50] [debug] Outgoing: Writing USERAUTH_REQUEST (publickey) [01-04 12:48:50] [debug] Outgoing: Writing CHANNEL_OPEN (0, session) [01-04 12:48:51] [debug] Outgoing: Writing CHANNEL_REQUEST (0, subsystem: sftp) [01-04 12:48:51] [debug] Outgoing: Writing CHANNEL_DATA (0) [01-04 12:48:51] [info] hopping from 122.112.201.243 to 47.104.107.242 [01-04 12:48:51] [debug] Outgoing: Writing CHANNEL_OPEN (1, direct-tcpip) [01-04 12:48:51] [debug] Outgoing: Writing OPEN [01-04 12:48:51] [debug] Outgoing: Writing CHANNEL_DATA (0) [01-04 12:48:51] [debug] Outgoing: Writing DISCONNECT (BY_APPLICATION) [01-04 12:48:51] [debug] Outgoing: Writing DISCONNECT (BY_APPLICATION) [01-04 12:48:51] [error] Error: No such file at SFTPStream._transform (c: \ Users \ 12854 \ .vscode \ extensions \ liximomo.sftp-1.12.9 \ node_modules \ ssh2-streams \ lib \ sftp.js: 412: 27) at SFTPStream.Transform._read (_stream_transform.js: 189: 10) at SFTPStream._read (c: \ Users \ 12854 \ .vscode \ extensions \ liximomo.sftp-1.12.9 \ node_modules \ ssh2-streams \ lib \ sftp.js: 183: 15) at SFTPStream.Transform._write (_stream_transform.js: 177: 12) at doWrite (_stream_writable.js: 417: 12) at writeOrBuffer (_stream_writable.js: 401: 5) at SFTPStream.Writable.write (_stream_writable.js: 301: 11) at Channel.ondata (_stream_readable.js: 713: 22) at Channel.emit (events.js: 200: 13) at addChunk (_stream_readable.js: 294: 12) at readableAddChunk (_stream_readable.js: 275: 11) at Channel.Readable.push (_stream_readable.js: 210: 10) at SSH2Stream. (c: \ Users \ 12854 \ .vscode \ extensions \ liximomo.sftp-1.12.9 \ node_modules \ ssh2 \ lib \ Channel.js: 167: 15)
at SSH2Stream.emit (events.js: 200: 13)
at parsePacket (c: \ Users \ 12854 \ .vscode \ extensions \ liximomo.sftp-1.12.9 \ node_modules \ ssh2-streams \ lib \ ssh.js: 3288: 10)
at SSH2Stream._transform (c: \ Users \ 12854 \ .vscode \ extensions \ liximomo.sftp-1.12.9 \ node_modules \ ssh2-streams \ lib \ ssh.js: 694: 13)
at SSH2Stream.Transform._read (_stream_transform.js: 189: 10)
at SSH2Stream._read (c: \ Users \ 12854 \ .vscode \ extensions \ liximomo.sftp-1.12.9 \ node_modules \ ssh2-streams \ lib \ ssh.js: 253: 15)
at SSH2Stream.Transform._write (_stream_transform.js: 177: 12)
at doWrite (_stream_writable.js: 417: 12)
at writeOrBuffer (_stream_writable.js: 401: 5)
at SSH2Stream.Writable.write (_stream_writable.js: 301: 11)
at Socket.ondata (_stream_readable.js: 713: 22)
at Socket.emit (events.js: 200: 13)
at addChunk (_stream_readable.js: 294: 12)
at readableAddChunk (_stream_readable.js: 275: 11)
at Socket.Readable.push (_stream_readable.js: 210: 10)
at TCP.onStreamRead (internal / stream_base_commons.js: 166: 17) download f: \ Life \ python \ common \ web \ webapi.py
[01-04 12:48:51] [debug] Outgoing: Writing CHANNEL_CLOSE (0)
[01-04 12:48:51] [debug] Outgoing: Writing CHANNEL_CLOSE (1)