Questions tagged [ssh2-sftp-client]

40 questions
0
votes
1 answer

How to download all folders and files with ssh2-sftp-client in node.js

So as the title says, im trying to download all folders and files stored in a sftp server, so im using ssh2-sftp-client package to accomplish this, but at the moment ive just managed to download single files in the folder specified in the…
Erraco
  • 138
  • 1
  • 12
0
votes
3 answers

Retrieving SFTP listings asynchorously in Node.js

I'm trying to retrieve SFTP listings using Node, from multiple servers. I'm using the ssh2-sftp-client library, and I'm trying to handle the asynchronous connections using a futzed Promise.all(). The SFTP servers are stored in a config file…
Dycey
  • 4,767
  • 5
  • 47
  • 86
0
votes
2 answers

how to use npm cli-progress in ssh2-sftp-client

i have a project with npm ssh2-sftp-client to download files from remote server,so i want to display downloading progress displaying in console.Downloading files works fine, but i do not know how to use cli-progress to display downloading progress…
Giggle
  • 7
  • 5
0
votes
1 answer

Write buffer data to SFTP server using Node and SSH2

I am trying to implement writing files to an SFTP server in Node using the SSH2 module. For my use case, the file source is Azure Blob Storage, and files are relatively large (more than 5 gigs) and so the idea is to capture data from blob storage in…
0
votes
0 answers

Partially csv file uploaded using SftpClient in C#

I am trying to upload CSV files on the server using MemoryStream but some rows are missing. there are 242 rows and it's showing 136 rows after uploaded and the last row test is cut. My code: using (var client = new SftpClient(hostName, userName,…
0
votes
1 answer

remove event listener from sftp client in nodejs

Looking to get some help. I'm new to Nodejs and wondering if it is possible, to remove this custom event emitter. I'm using package "ssh2-sftp-client", the code is running well, but i get warning from node console, said (node:67350)…
0
votes
1 answer

How to download multiple files with ssh2-sftp-client fastGet?

How do you download multiple txt files with fastGet? My code is as follows: const Client = require('ssh2-sftp-client'); const sftp = new Client(); sftp.connect(configs) .then(() => { return sftp.list('.'); }) .then(files => { …
curiousgeorge
  • 121
  • 3
  • 13
0
votes
1 answer

Date Format Changes While Sending Data to SftpClient With Renci.SSHNet

I'm trying to send rows of string to a remote SFTP server. I'm using SftpClient With Renci.SSHNet. This is how I build my rows of string: row = string.Format("{0},{1},{2},{3:dd/MM/yyyy HH:mm:ss},{4:dd/MM/yyyy HH:mm:ss},{5:dd/MM/yyyy…
itzick binder
  • 524
  • 10
  • 31
0
votes
1 answer

How to format the SFTP received CSV file and batch push into Postgres.?

Steps that I need to perform: 1. Fetching the CSV file from a SFTP server 2. The file received is not formatted which I tried using fast-csv parser but was not able to achieve. 3. Post the entire data into a Postgres database. const Pool =…
Shashank Raj
  • 25
  • 1
  • 12
-1
votes
1 answer

How to move files in remote directory SFTP server

I'm new to SFTP servers, I was able to read my file from remote SFTP server and able to process the data. Now my major concern is how to move the file in Archive folder in the same remote server. I'm using Nodejs and ssh2-sftp-client to connect the…
1 2
3