ssh2-streams
ssh2-streams copied to clipboard
SSH2 and SFTP client/server protocol streams for node.js
I have some code that can access a number of different network/file resources, including a SFTP server. This code gets a Stream from any of those different resources and then...
Hi, I've an app that opens multiple simultaneous ssh2 connections and uses `sftp.fastGet` to retrieve a set of files in a try/catch block. However, _sometimes_ the program bails with: ```...
Hi, I'm copying files via sftp from one server to another simply by piping a readStream to writeStream. Actually I'm using ssh2-promise, but afaict, it simply wraps ssh2-streams methods. Unfortunately,...
The error passed to the destroy method should be emitted using the `error` event, as specified in the [node docs](https://nodejs.org/dist/latest/docs/api/stream.html#stream_readable_destroy_error): `Error which will be passed as payload in 'error' event`....
Hello, While proxying SFTPStream events I've came across with unmapped flags ``` '11': OPEN_MODE.CREAT | OPEN_MODE.WRITE | OPEN_MODE.READ '19': OPEN_MODE.TRUNC | OPEN_MODE.WRITE | OPEN_MODE.READ '43': OPEN_MODE.EXCL | OPEN_MODE.CREAT | OPEN_MODE.WRITE...
``` events.js:182 Uncaught Error: Malformed packet at SFTPStream._cleanup (/home/waqas/PycharmProjects/manager/static/staging_app/node_modules/s…:208) at readString (/home/waqas/PycharmProjects/manager/static/staging_app/node_modules/s…:583) at SFTPStream._transform (/home/waqas/PycharmProjects/manager/static/staging_app/node_modules/s…:370) at SFTPStream.Transform._read (_stream_transform.js:186) at SFTPStream._read (/home/waqas/PycharmProjects/manager/static/staging_app/node_modules/s…:170) at SFTPStream.Transform._write (_stream_transform.js:174) at doWrite (_stream_writable.js:371) at writeOrBuffer (_stream_writable.js:357)...
Hi there I'm trying to use `createWriteStream` to transfer files from my client to a server. When the files are bigger than 4-5MB the transfer stops at some point and...
This could be caused from my own code of course. I'm downloading all the files from a remote server folder with `sftp.fastGet()`. Everything runs fine when working with roughly a...
As per the documentation, `readdir` callback should receive a boolean _false_ as the `list` argument when the folder listing is over, but I don't see it and my code breaks...
Since the fastGet use multi connection to speed up the file download. It would be great if we can use the same technique to speed up the stream from createReadStream....