Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.js SFTP client

I want to access sftp servers through a node.js app. Do you know a library for this? Or have you an idea how I could realize this?

Thanks for your answers!

like image 442
Van Coding Avatar asked Mar 02 '11 22:03

Van Coding


People also ask

What is ssh2 SFTP?

The SSH2 File Transfer Protocol (SFTP), supported by Cerberus FTP Server Professional and higher, is a network protocol that provides secure and reliable file access, file transfer, and file management functionality.

What is an example of an SFTP client?

WinSCP. WinSCP is a popular file transfer client for Windows, boasting over 114 million downloads. It's free, extensible, and supports SFTP, FTP(S), SCP, and WebDAV (an extension of HTTP). WinSCP supports drag and drop, a variety of languages, scripting, and includes an integrated text editor.

Can I SSH to SFTP server?

SFTP cannot exist without SSH — SFTP uses SSH as the binding agent to transfer files securely. In other words, SSH protocol is used in the file transfer mechanism SFTP. In fact, most SSH servers include SFTP capabilities. However, not all SFTP servers support SSH commands and actions.


2 Answers

May be SSH2(https://www.npmjs.org/package/ssh2) library will help you

like image 143
Naren Chejara Avatar answered Oct 18 '22 19:10

Naren Chejara


I don't think there is a library already written for this, but you could perhaps use the sftp client via a child process.

like image 44
Greg Avatar answered Oct 18 '22 20:10

Greg