공부/미해결

[Visual Studio Code] SFTP 오류

01210210 2020. 12. 21. 20:28

Visual Studio Code에서 SFTP로 서버 소스를 Download 하는데 No such file 에러가 발생했다.

 

sftp.json

{
    "name": "servername",
    "host": "serverip",
    "protocol": "sftp",
    "port": 22,
    "username": "username",
    "password": "password",
    "remotePath": "path",
    "uploadOnSave": false
}

에러

[12-08 08:25:38] [error] Error: No such file
	at SFTPStream._transform (c:\Users\username\.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\username\.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:435:12)
	at writeOrBuffer (_stream_writable.js:419:5)
	at SFTPStream.Writable.write (_stream_writable.js:309:11)
	at Channel.ondata (_stream_readable.js:728:22)
	at Channel.emit (events.js:223:5)
	at addChunk (_stream_readable.js:309:12)
	at readableAddChunk (_stream_readable.js:290:11)
	at Channel.Readable.push (_stream_readable.js:224:10)
	at SSH2Stream.<anonymous> (c:\Users\username\.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2\lib\Channel.js:167:15)
	at SSH2Stream.emit (events.js:223:5)
	at parsePacket (c:\Users\username\.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2-streams\lib\ssh.js:3288:10)
	at SSH2Stream._transform (c:\Users\username\.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\username\.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)

 

https://marketplace.visualstudio.com/items?itemName=liximomo.sftp

 

SFTP - Visual Studio Marketplace

Extension for Visual Studio Code - SFTP/FTP sync

marketplace.visualstudio.com