Integrating Secure FTP into Data Services



Similar documents
Please note that a username and password will be made available upon request. These are necessary to transfer files.

How to FTP (How to upload files on a web-server)

WinSCP for Windows: Using SFTP to upload files to a server

CASHNet Secure File Transfer Instructions

Using SSH Secure Shell Client for FTP

Avatier Identity Management Suite

CEFNS Web Hosting a Guide for CS212

Access Instructions for United Stationers ECDB (ecommerce Database) 2.0

EVault for Data Protection Manager. Course 361 Protecting Linux and UNIX with EVault

NovaBACKUP xsp Version 15.0 Upgrade Guide

WS_FTP Pro. User s Guide. Software Version 6. Ipswitch, Inc.

SAP Business Objects Data Services Setup Guide

Updating Device Firmware Via FTP

SSH Secure Client (Telnet & SFTP) Installing & Using SSH Secure Shell for Windows Operation Systems

Tutorial: Packaging your server build

Using FTP to update L300 Firmware

Virtual Office Remote Installation Guide

How to use SURA in three simple steps:

Autograph 3.3 Network Installation

Administrator s Guide

Egnyte Single Sign-On (SSO) Configuration for Active Directory Federation Services (ADFS)

Microsoft Windows PowerShell v2 For Administrators

Cloud Server powered by Mac OS X. Getting Started Guide. Cloud Server. powered by Mac OS X. AKJZNAzsqknsxxkjnsjx Getting Started Guide Page 1

Using

How to move a SQL database from one server to another

ilaw Installation Procedure

Windows Firewall Configuration with Group Policy for SyAM System Client Installation

HOW TO SILENTLY INSTALL CLOUD LINK REMOTELY WITHOUT SUPERVISION

Migrating MSDE to Microsoft SQL 2008 R2 Express

Setting up Citrix XenServer for 2X VirtualDesktopServer Manual

Management Utilities Configuration for UAC Environments

Configure and enable remote access for windows operating system

VERITAS Backup Exec 9.1 for Windows Servers Quick Installation Guide

Step-by-Step Setup Guide Wireless File Transmitter FTP Mode

JAVS Scheduled Publishing. Installation/Configuration... 4 Manual Operation... 6 Automating Scheduled Publishing... 7 Windows XP... 7 Windows 7...

Knowledge Base Article: Article 218 Revision 2 How to connect BAI to a Remote SQL Server Database?

ProjectWise Mobile Access Server, Product Preview v1.1

ANDROID RECOVERY STICK QUICK START GUIDE

How to install and set up the WinSCP software for Secure File Transfer

Quick Start Guide. Cerberus FTP is distributed in Canada through C&C Software. Visit us today at

CONFIGURING MICROSOFT SQL SERVER REPORTING SERVICES

AnzioWin FTP Dialog. AnzioWin version 15.0 and later

How to Move an SAP BusinessObjects BI Platform System Database and Audit Database

2 Advanced Session... Properties 3 Session profile... wizard. 5 Application... preferences. 3 ASCII / Binary... Transfer

Inteset Secure Lockdown ver. 2.0

How to Configure Windows 8.1 to run ereports on IE11

Installation Manual v2.0.0

Configuring Security for FTP Traffic

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

HPCC - Hrothgar Getting Started User Guide

Working Together - Your Apple Mac and Microsoft Windows

Downloading and Installing Core FTP

Insight Video Net. LLC. CMS 2.0. Quick Installation Guide

WS_FTP Pro for Windows 95/98/NT

XMap 7 Administration Guide. Last updated on 12/13/2009

Team Foundation Server 2013 Installation Guide

Guide to the Configuration and Use of SFTP Clients for Uploading Digital Treatment Planning Data to ITC

Microsoft Virtual Labs. Administering the IIS 7 File Transfer Protocol (FTP) Server

Setting Up VNC, SSH Tunnels, and RDP

Important Notes for WinConnect Server VS Software Installation:

Integrating with BarTender Integration Builder

Non-ThinManager Components

Setting up VMware ESXi for 2X VirtualDesktopServer Manual

Install MS SQL Server 2012 Express Edition

VPN Remote Access Installation and Configuration Guide Operating System: Windows (XP, Vista, 7 and 8)

Georgia State Longitudinal Data System

Administrator s Guide

Scheduling in SAS 9.4 Second Edition

Informatica MRS Backup

Table of Contents. Part I Introduction 2. Part II Keyboard Monitor 2. Part III Console Viewer 4. Part IV FAQ 5. Part V Support 6. Index 0.

File Transfer With Win_SCP (on campus)

SysAid Remote Discovery Tool

Installation Guide for Microsoft SQL Server 2008 R2 Express. October 2011 (GUIDE 1)

Installing Windows Server Update Services (WSUS) on Windows Server 2012 R2 Essentials

Quick Start Guide. IT Management On-Demand

GeneMapper Software v.4.1 Uninstall Procedure

How to Setup and Connect to an FTP Server Using FileZilla. Part I: Setting up the server

Agilent System Protocol Test Release Note

Getting Started With Delegated Administration

How do I Install and Configure MS Remote Desktop for the Haas Terminal Server on my Mac?

SQL Server Business Intelligence

Remote Console Installation & Setup Guide. November 2009

File Transfer Protocol (FTP) Instructions

Getting Started with RES Automation Manager Agent for Linux

for Networks Installation Guide for the application on a server September 2015 (GUIDE 2) Memory Booster version 1.3-N and later

Recommended File System Ownership and Privileges

GETTING STARTED WITH SQL SERVER

Automating client deployment

FTP File Transfer Protocol as It Relates to ACBL Unit 547 by Bob Gruber

Endpoint Client Installation using Group Policy (Logon Script):

Aradial Installation Guide

SAS 9.3 Foundation for Microsoft Windows

INSTALLING MICROSOFT SQL SERVER AND CONFIGURING REPORTING SERVICES

PowerMapper/SortSite Desktop Deployment Guide v Introduction

Configuring user provisioning for Amazon Web Services (Amazon Specific)

for Networks Installation Guide for the application on the server July 2014 (GUIDE 2) Lucid Rapid Version 6.05-N and later

for Networks Installation Guide for the application on the server August 2014 (GUIDE 2) Lucid Exact Version 1.7-N and later

SAP BusinessObjects Business Intelligence Suite Document Version: 4.1 Support Package Patch 3.x Update Guide

Setting up VMware Server v1 for 2X VirtualDesktopServer Manual

Transcription:

Integrating Secure FTP into Data Services SAP Data Services includes decently-robust native support for FTP transport, as long as you don t mind it being non-secured. However, understandably, many applications require the use of secured FTP transport methodologies, since the data being transmitted is often of a sensitive nature. You probably don t want to risk your data being intercepted in transit, especially if it s going outside of the organization s firewall. Fortunately, programs like WinSCP are available, and are robust, scriptable, and free. We can then integrate that scripting into Data Services to create a relatively seamless solution. What you ll Need WinSCP (available at winscp.net) Data Services A text editor FTP credentials and protocol information Known directory structures on both source and target systems A little bit of time In this example, we ll copy over a remote directory s contents to a local directory. Step 1: Install WinSCP Download WinSCP at winscp.net. You can run a pretty standard install. Make note of the installation directory Set the program to use.ini configuration, instead of the default, which is to write configuration to the registry. I ll explain why (and how to fix it if you ve already goofed) below. Step 2: Make Sure you re Using.ini Configuration WinSCP stores remote server keys in its configuration area. Generally, the first time you connect to a remote server, you need to accept the remote key. After this, it s stored in that area for any future uses. Since we want all of this scripted, we want to make sure there is no user input required. If there is, the entire process will fail, since Data Services will interpret the prompt as an execution failure. Odds are that you re probably using the local system account to run Data Services. Therefore, when we launch WinSCP from Data Services, it will also launch under the system account. If configuration is stored in the registry, it s stored in HKEY_LOCAL_USER, which means the configuration (and, therefore, the stored key) is only available to the user that s logged in when the key is accepted. That s a problem, since we can t create registry settings for the system account.

However, the.ini file is stored in the same directory as WinSCP program files, and is available to any user running the program globally. So, when you accept the key manually the first time you run the script, the key is saved for all future executions no matter which account the script uses to run. To make sure this is set, start WinSCP. Navigate down to Preferences at the bottom of the left pane. Then, click the Preferences button toward the middle of the window. In the preferences window, select

Step 3: Write your WinSCP Script As discussed earlier, I m including a basic script that copies down the contents of a remote directory of text files to a local directory. If you need additional functionality, the WinSCP site has excellent help modules in available commands. If you need to get fancy, you can even write scripts in.net. Here, we ll be sticking to the simple script format. # Automatically abort script on errors option batch off # Disable overwrite confirmations that conflict with the previous option confirm off # Connect using supplied credentials. Hostkey should work as-is 99% of time open sftp://user:password@server -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" # Change remote directory cd /remotedir # Force ascii mode transfer for text files option transfer ascii # Download files. Make sure the local directory ends with a backslash get *.* c:\localdir\ # Disconnect close # Exit WinSCP exit Step 4: Test the WinSCP Script Run your script using the following syntax in a command line: [WinSCP location]\winscp.com /script=[script location] If you connect successfully, it s likely that you ll be prompted to accept the certificate on your first successful run. Please do so (select Y ). This will make sure the prompt doesn t appear again. If the entire script is successful, you should now see the contents of the remote directory copied into your local directory. If not, keep on trying. When you re successful, please keep a copy of the command line you used. Make sure both the WinSCP location and the script location both have full paths included. Note that Program Files (x86) will need to be in double quotes if it s part of the patch to WinSCP. Step 5: Make a quick batch file When I went through this process, Data Services seemed to have a little trouble with the quotes in the path to the WinSCP executable. To get around this, just put the executable command in a very simple batch file, and put that batch file somewhere in a path that has no spaces in it. In this example, you ll use C:\ftp_script\run_ftp.bat. It only needs to be one line: the command line you used from the previous step.

Test the batch file by calling it literally: C:\ftp_script\run_ftp.bat. If it runs, you re all good. Step 6: Run the file from Data Services Now, all you need to do in order to run the script from Data Services is to include it in a script object. Use the exec command in order to call the script. Everything else at this point should be automatic. I prefer to use batch mode 8 when running because it will return the contents of stdout, as well as information on the error if one occurs. Here s the simple script: print(exec('c:\ftp_script\run_ftp.bat', '',8)); This prints the results of the script to the console for easy viewing and debugging. Save and run your Data Services job. It should now be doing the file copy automatically. You can incorporate the script call into a larger Data Services job for whatever file transportation you need. Happy file moving! Britton Gray, Business Intelligence Consultant Decision First Technologies britton.gray@decisionfirst.com Britton Gray has been working in software development and Business Intelligence for the past fourteen years, and has been working with SAP BusinessObjects reporting, analytics, and information management tools for six years. He is certified in Data Integrator and Web Intelligence, and enjoys developing end-to-end BI solutions that enable customers to gain new insights into their data.