liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 259 forks source link

(SSH) Channel open failure: open failed #811

Open WongSingLei opened 4 years ago

WongSingLei commented 4 years ago

Do you read the FAQ?

Describe the bug Trying to hop from local -> A -> B. Getting "(SSH) Channel open failure: open failed"

To Reproduce Steps to reproduce the behavior: . Go to sftp.json and edit to

{
    "name": "My Server",
    "host": "serverA",
    "protocol": "sftp",
    "port": 22,
    "username": "username",
    "remotePath": "somePath",
    "uploadOnSave": true,

    "hop": {
        "host": "ServerB",
        "username": "username",
        "port": 22,
        "privateKeyPath": "/data/wesleyli/amazon_cn.pem"
    }
}
  1. Run command SFTP: Sync Local -> Remote (or any other SFTP command)
  2. See error

Expected behavior No errors. Files synced to remote.

Desktop (please complete the following information):

Extension Logs from Startup - required

[08-10 17:49:49] [error] Error: (SSH) Channel open failure: open failed
    at SSH2Stream.onFailure (c:\Users\Administrator\.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2\lib\client.js:1205:13)
    at Object.onceWrapper (events.js:291:20)
    at SSH2Stream.emit (events.js:203:13)
    at parsePacket (c:\Users\Administrator\.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2-streams\lib\ssh.js:3552:10)
    at SSH2Stream._transform (c:\Users\Administrator\.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\Administrator\.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:418:12)
    at writeOrBuffer (_stream_writable.js:402:5)
    at SSH2Stream.Writable.write (_stream_writable.js:302:11)
    at Socket.ondata (_stream_readable.js:720:22)
    at Socket.emit (events.js:203:13)
    at addChunk (_stream_readable.js:295:12)
    at readableAddChunk (_stream_readable.js:276:11)
    at Socket.Readable.push (_stream_readable.js:210:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:166:17) download f:\Codes\hop_test\bug.md