Windows SFTP with PGP using CLI
Revision as of 13:47, 2 June 2016 by Michael.mast (talk | contribs) (Created page with "This is the process I went through when configuring a scheduled task on a Windows Server to do the following *Download files over SFTP (aka SCP aka SSH aka You get the point)...")
This is the process I went through when configuring a scheduled task on a Windows Server to do the following
- Download files over SFTP (aka SCP aka SSH aka You get the point) using keys without passdwords.
- Move the remote files to an archive location on the remote server after download finished.
- Decrypt the downloaded files
- Sort the decrypted files so the developers could do whatever they needed to with them.
Prep Work
The following programs will need to be downloaded and installed on the server running job
During installation make sure to enable PATH integration.
(The following needs more details)
- Create your SSH keys. I had created them using my Linux workstation, then had WinSCP convert them to the PPK format that WinSCP requires. WinSCP can create keys for you, but that is outside of this documents scope at the moment.
- Create your PGP keys. I created pgp keys using my workstation, and provided the vendor the public key. I am using the private key with password protection (for transferring the key from my workstation to the server) to decrypt with.
- On the Windows domain I am working in, I created a dedicated user with limited access to run the scheduled job as