Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
sftp-to-s3
Advanced tools
const SftpToS3 = require('sftp-to-s3');
const config = {
sftp: {
host: process.env.hostname,
username: process.env.user,
password: process.env.password,
port: 6522,
privateKey: fs.readFileSync(process.env['HOME'] + '/.ssh/first_data_key')
},
aws: {
bucket: "bucket_name", accessKeyId: 'AKID', secretAccessKey: 'SECRET', region: 'us-west-2'
},
fileDownloadDir: "/",
completedDir: '/completed-uploads/'
};
SftpToS3.batch(config)
.then((success) => {
console.log(success)
})
.catch((err) => {
console.error(err)
})
make sure your completedDir
and fileDownloadDir
are absolute paths. Do not use a path such as ./completedDir
, becasue then a file will not be found...derp
if you have your aws set up properly with the .aws
folder in home directory, you will not need to provide secretAccessKey
or region
, only bucket
will need to be in the config.
FAQs
library to upload files from sftp server to aws s3
The npm package sftp-to-s3 receives a total of 0 weekly downloads. As such, sftp-to-s3 popularity was classified as not popular.
We found that sftp-to-s3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.