secureftp
Create SFTP connections in node.js to remote servers
Install
npm install secureftp
Features:
- Supports infinite commands with arguments
- Fully supported SFTP methods
- Handles all the dirty stuff under the hood
Usage:
var SFTP = ; // CONNECT to '127.0.0.0' as 'root' var sftp = 'root' '127.0.0.0'; // RUN Commands // 1. Argument: cd /root/project/public // 2. Argument: ls -1 ; // GET HELP with: ;
Setup SFTP Instance Arguments
"user" : "root" // the username to connect with "host" : "127.0.0.0" // the host to reach usually an IP
SFTP function Arguments
You can have inifinite command arguments, the last one is the callback function
Warning
- The module only works if
rsa key
is configured with the server you want to reach
Todo
- Single time login with a password.