SOCKS FTP Client for nodejs
node-socksftp is an FTP client for nodejs supporting SOCKS proxy.
Note: This is a fork of the node-ftp project with added support for connecting to a SOCKS proxy.
Instructions:
- Copy the socksftp package to your program’s working directory.
- Make a new FTP connection through a SOCKS proxy.
Example:
var server = { 'host': 'ftp.ftpdomain.com', 'port': 21, 'user': 'ftpusername', 'password': 'ftppassword', 'socksproxy': 'username:password@socksdomain.com:1080' }; var Client = require('socksftp'); var c = new Client(); c.on('ready', function() { //run ftp command here... }); c.on('error', function(err){ console.error('socksftp error: ' + err); return; }); c.connect(server);
Issues:
You can report any issue via http://github.com/choonyme/node-socksftp/issues.
Nice work, does the socksftp module work with sftp?
There should be some sftp modules out there. This is just a hack to get SOCKS working over sftp.