https://github.com/jsmithdev/sftp-node-ex
Example of sftp communications in node
https://github.com/jsmithdev/sftp-node-ex
Last synced: about 2 months ago
JSON representation
Example of sftp communications in node
- Host: GitHub
- URL: https://github.com/jsmithdev/sftp-node-ex
- Owner: jsmithdev
- Created: 2022-02-23T00:58:13.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-23T01:08:10.000Z (over 4 years ago)
- Last Synced: 2025-06-18T13:51:02.184Z (12 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SFTP Node Example
This is an example of sftp communications in node
Wrote js years ago but a dev asked about sftp so updated packages and basic auth, listing, etc worked so sharing
Mileage may vary
## Environment Variables
During development, add `.env` file to the root with the values you want to use for your sftp
FTP_DIR=/
FTP_USER=demo
FTP_PASSWORD=(this is used for basic auth)
FTP_KEY=(if using a key this would be the path to the key file)
FTP_PASSPHRASE=(if using passphrase)
FTP_HOST=your.host.com