By ysatishreddy
Hi All,
I have a couple of requirements which I need to achieve using Linux machine.
can you please guide me how to design the above requirement.
thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You could write a quick bash script using SCP/SFTP for transfers and if you are using say OpenSSL:
#!/bin/bash
openssl des3 -salt -in file1.txt -out file1.crypt -pass pass:CHANGEME
openssl des3 -salt -in file2.txt -out file2.crypt -pass pass:CHANGEME
# This is the SCP Option
scp <file to upload> <username>@<hostname>:<destination path>
scp <file to upload> <username>@<hostname>:<destination path>
# This is the SFTP Option (Make Batch File)
sftp -b files.list username@hostname
If you want to use SFTP or SCP setup keys, but if you need to do SFTP option too use the batch option just put this into a files.list file with this script:
cd some-path/
binary
put file1.crypt
put file2.crypt
quit
See if that helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.