?
Solved

Automate SFTP file download in Windows

Posted on 2016-10-17
5
Medium Priority
?
33 Views
Last Modified: 2016-11-22
I am looking for achieve the following;
 
  1. Login and connect to a sftp site without password prompt
  2. Downloads all files located in; /test/in and /prod/in
  3. Save all downloaded files to: C:\temp
  4. Removes the files located in; /test/in and /prod/in
 
Please do not provide me with links. I am hoping someone can help write the necessary script to these values.
0
Comment
Question by:the_omnific
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 58

Accepted Solution

by:
Julian Hansen earned 2000 total points
ID: 41846436
How about WinSCP

Download here
https://winscp.net/eng/download.php

WikiPedia page
https://en.wikipedia.org/wiki/WinSCP

Features (from the WikiPedia Page)

A remote edit window
Graphical user interface
Translated into several languages
Integration with Windows (Drag-and-drop, URL, shortcut icons)
All common operations with files
Support for SFTP and SCP protocols over SSH-1 and SSH-2, FTP protocol and WebDAV protocol.[8]
Batch file scripting, command-line interface and .NET wrapper
Directory synchronization in several semi or fully automatic ways
Integrated text editor
Support for SSH password, keyboard-interactive, public key and Kerberos (GSS) authentication
Integrates with Pageant (PuTTY authentication agent) for full support of public key authentication with SSH
Choice of Windows Explorer–like or Norton Commander–like interfaces
Optionally stores session information
Optionally import session information from PuTTY sessions in the registry
Able to upload files and retain associated original date/timestamps, unlike FTP clients
0
 
LVL 1

Author Comment

by:the_omnific
ID: 41846445
Can you help me detail each step involved?
0
 
LVL 58

Expert Comment

by:Julian Hansen
ID: 41846540
First take a read of this page and post back with any specific questions you might have

https://winscp.net/eng/docs/guide_automation
0
 
LVL 58

Expert Comment

by:Julian Hansen
ID: 41846543
This expert suggested creating a Gigs project.
Please do not provide me with links. I am hoping someone can help write the necessary script to these values.

Might I suggest that you open a GiG for this. It appears you want someone to write the solution for you.
0
 
LVL 16

Expert Comment

by:Jason Crawford
ID: 41897209
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: Julian Hansen (https:#a41846436)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

exchangepro
Experts-Exchange Cleanup Volunteer
0

Featured Post

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question