The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need script to connect sftp servers kittusri9 Shell Programming and Scripting 1 05-10-2008 05:13 AM
rsh to change multiple ip in multiple servers? kenshinhimura Shell Programming and Scripting 2 02-18-2008 03:04 AM
transfer word document using ftp,sftp artikulkarni UNIX for Dummies Questions & Answers 3 02-17-2008 07:10 PM
How to transfer files (By using generic script) when using sftp gsri Shell Programming and Scripting 0 08-28-2006 09:39 PM
ftp to multiple servers kristy Shell Programming and Scripting 2 12-03-2001 03:49 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-20-2008
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 499
SFTP Transfer Across Multiple Servers

Hello everyone,

Have a question which I'm not entirely sure about, but will ask anyway.

We have three servers (A/B/C), 'A' being the local host, 'B' being a SFTP server on the DMZ, and 'C' being the intended remote host. The task is to transfer file/s from server 'A' to server 'C' via server 'B'.

Now I can already hear people asking why not just go from server 'A' to 'C' directly. That'd be great, however due to existing security policies & practices which are in place on both hosts ('A' & 'C'), and an obligation to maintain PCI security requirements; this isn't possible.

Hence the SFTP server (server 'B'). It's a windows platforn (don't razz me) running WinSSHD. Have already performed sftp connectivity testing from server 'A' to 'B' successfully. So no issues there.

The logistics issue (more understanding really) for me is that server 'B' cannot under any circumstances retain any received file for any time longer than is necessary (Business and Security request).

So how best should I monitor files on server 'B' coming from server 'A' and then commence an SFTP to move the file to server 'C' ??
My initial thought was to monitor for the existance of the file and then execute a predefined sftp batch script.

No problem I initially thought, but what would happen if the file was still in the process of uploading from server 'A' when server 'B' identifies the existance of the inbound file. If it tries to execute the sftp batch before the upload from server 'A' is complete it would/could cause issues.

Is this an issue or am I over reacting here ??

A possible alternative was to have two(2) files sent across from server 'A', the first being the "required" file, the second being a trigger. Server 'B' would monitor for the trigger file, then execute the sftp batch script upon the existance of the trigger and "required" files.

I do wish I had the time available to tinker with this, however like many projects, the Operations side is left to the last minute to be advised of what is required - and even then it's flakey.

Hope I've been able to keep everything clear.
Any recommendations / suggestions appreciated.

Cheers,
Cameron
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0