liximomo / vscode-sftp

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

Received exit code 255 while establishing SFTP session #859

Open tossp opened 3 years ago

tossp commented 3 years ago

Do you read the FAQ?

Describe the bug

[11-13 14:01:18] [trace] run command 'Upload File'
[11-13 14:01:18] [trace] handle upload file for c:\Users\ts\proj\scdy\index.php
[11-13 14:01:19] [debug] Local ident: 'SSH-2.0-ssh2js0.4.5'
[11-13 14:01:19] [debug] Client: Trying nas.tossp.com on port 5022 ...
[11-13 14:01:19] [debug] Client: Connected
[11-13 14:01:19] [debug] Remote ident: 'SSH-2.0-OpenSSH_7.4'
[11-13 14:01:19] [debug] Outgoing: Writing KEXINIT
[11-13 14:01:19] [debug] DEBUG: Comparing KEXINITs ...
[11-13 14:01:19] [debug] (local) KEX algorithms: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
[11-13 14:01:19] [debug] (remote) KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512
[11-13 14:01:19] [debug] KEX algorithm: diffie-hellman-group-exchange-sha256
[11-13 14:01:19] [debug] (local) Host key formats: ssh-ed25519,ssh-rsa,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
[11-13 14:01:19] [debug] (remote) Host key formats: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
[11-13 14:01:19] [debug] Host key format: ssh-ed25519
[11-13 14:01:19] [debug] (local) Client->Server ciphers: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm,aes128-gcm@openssh.com,aes256-gcm,aes256-gcm@openssh.com
[11-13 14:01:19] [debug] (remote) Client->Server ciphers: aes128-ctr,aes128-gcm@openssh.com,aes192-ctr,aes256-ctr,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
[11-13 14:01:19] [debug] Client->Server Cipher: aes128-ctr
[11-13 14:01:19] [debug] (local) Server->Client ciphers: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm,aes128-gcm@openssh.com,aes256-gcm,aes256-gcm@openssh.com
[11-13 14:01:19] [debug] (remote) Server->Client ciphers: aes128-ctr,aes128-gcm@openssh.com,aes192-ctr,aes256-ctr,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
[11-13 14:01:19] [debug] Server->Client Cipher: aes128-ctr
[11-13 14:01:19] [debug] (local) Client->Server HMAC algorithms: hmac-sha2-256,hmac-sha2-512,hmac-sha1
[11-13 14:01:19] [debug] (remote) Client->Server HMAC algorithms: hmac-sha2-256,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-512-etm@openssh.com,umac-128-etm@openssh.com,umac-128@openssh.com
[11-13 14:01:19] [debug] Client->Server HMAC algorithm: hmac-sha2-256
[11-13 14:01:19] [debug] (local) Server->Client HMAC algorithms: hmac-sha2-256,hmac-sha2-512,hmac-sha1
[11-13 14:01:19] [debug] (remote) Server->Client HMAC algorithms: hmac-sha2-256,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-512-etm@openssh.com,umac-128-etm@openssh.com,umac-128@openssh.com
[11-13 14:01:19] [debug] Server->Client HMAC algorithm: hmac-sha2-256
[11-13 14:01:19] [debug] (local) Client->Server compression algorithms: none,zlib@openssh.com,zlib
[11-13 14:01:19] [debug] (remote) Client->Server compression algorithms: none,zlib@openssh.com
[11-13 14:01:19] [debug] Client->Server compression algorithm: none
[11-13 14:01:19] [debug] (local) Server->Client compression algorithms: none,zlib@openssh.com,zlib
[11-13 14:01:19] [debug] (remote) Server->Client compression algorithms: none,zlib@openssh.com
[11-13 14:01:19] [debug] Server->Client compression algorithm: none
[11-13 14:01:19] [debug] Outgoing: Writing KEXDH_GEX_REQUEST
[11-13 14:01:54] [debug] Outgoing: Writing KEXDH_GEX_INIT
[11-13 14:01:54] [debug] DEBUG: Checking host key format
[11-13 14:01:54] [debug] DEBUG: Checking signature format
[11-13 14:01:54] [debug] DEBUG: Verifying host fingerprint
[11-13 14:01:54] [debug] DEBUG: Host accepted by default (no verification)
[11-13 14:01:55] [debug] DEBUG: Verifying signature
[11-13 14:01:55] [debug] Outgoing: Writing NEWKEYS
[11-13 14:01:55] [debug] Outgoing: Writing SERVICE_REQUEST (ssh-userauth)
[11-13 14:01:55] [debug] Outgoing: Writing USERAUTH_REQUEST (none)
[11-13 14:01:55] [debug] Client: none auth failed
[11-13 14:01:55] [debug] Outgoing: Writing USERAUTH_REQUEST (publickey -- check)
[11-13 14:01:55] [debug] Outgoing: Writing USERAUTH_REQUEST (publickey)
[11-13 14:01:55] [debug] Outgoing: Writing CHANNEL_OPEN (0, session)
[11-13 14:01:55] [debug] Outgoing: Writing CHANNEL_REQUEST (0, subsystem: sftp)
[11-13 14:01:55] [debug] Outgoing: Writing CHANNEL_DATA (0)
[11-13 14:01:55] [debug] Outgoing: Writing CHANNEL_CLOSE (0)
[11-13 14:01:55] [debug] Outgoing: Writing DISCONNECT (BY_APPLICATION)
[11-13 14:01:55] [debug] Outgoing: Writing DISCONNECT (BY_APPLICATION)
[11-13 14:01:55] [error] Error: Received exit code 255 while establishing SFTP session
    at Channel.onExit (c:\Users\ts\.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2\lib\client.js:904:19)
    at Object.onceWrapper (events.js:313:26)
    at Channel.emit (events.js:223:5)
    at SSH2Stream.<anonymous> (c:\Users\ts\.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2\lib\Channel.js:210:14)
    at SSH2Stream.emit (events.js:223:5)
    at parse_CHANNEL_REQUEST (c:\Users\ts\.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2-streams\lib\ssh.js:4560:8)
    at parsePacket (c:\Users\ts\.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2-streams\lib\ssh.js:3858:12)
    at SSH2Stream._transform (c:\Users\ts\.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\ts\.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:435:12)
    at writeOrBuffer (_stream_writable.js:419:5)
    at SSH2Stream.Writable.write (_stream_writable.js:309:11)
    at Socket.ondata (_stream_readable.js:728:22)
    at Socket.emit (events.js:223:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:290:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:181:23) 

Desktop (please complete the following information):