Skip to content

Instantly share code, notes, and snippets.

@Green-li
Created June 25, 2021 06:03
Show Gist options
  • Save Green-li/29e73f0d98a850d3041246f41a44f78e to your computer and use it in GitHub Desktop.
Save Green-li/29e73f0d98a850d3041246f41a44f78e to your computer and use it in GitHub Desktop.
fix the 'no such file' or 'bad file descriptor' of vs-code extensions 'sftp'

Methods is from https://github.com/Natizyskunk/ssh2-streams/commit/e1db386ff9b0fc145c67dc13ada3e969d59cc51f#diff-11c2413775403ed66594f387ae0a38ec06ed746902424f86c7cbbbc7e395f4ca. change the lines in .vscode-server/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/sftp.js

...
...
  // add after line No. 2730
  // Fix error No such file.
  options.autoDestroy = false;
  
...
...
  // add after line No. 2930
  // Fix error No such file.
  options.autoDestroy = false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment