The UNIX and Linux Forums  


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
How to upload mike314 UNIX for Dummies Questions & Answers 2 11-26-2008 12:46 PM
SSH upload error upirate Linux 1 03-14-2007 09:39 AM
upload FTP keliy1 Linux 3 12-07-2004 10:23 AM
Can't upload to red hat 7.3 Phineus Filesystems, Disks and Memory 4 11-14-2002 10:07 PM
Ftp Upload Folder roberthawke UNIX for Advanced & Expert Users 3 06-21-2002 01:19 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-19-2008
suchintkotia suchintkotia is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 1
Ftp from server1 and upload to server3 from server2

Hi ,

i have three server
server1 -> Unix OS ,ftp enable IP ->10.8.219.190

server 2 -> Unix OS ,ftp enable
NIC 1 IP ->10.8.219.191 ,NIC2 ->192.168.0.5

server3 -> windows OS ,ftp enable NIC1 ->192.168.0.6.

hence server 1 and server 3 can not communicate ,but server 2 can communicate to both server 1 and server3.

my issue is files are coming on server1 and my application is residing on server3.

current scenario is
i am 'GET' ftping on server 1 from server2 and once it is finish i am ftping to server 3 from server2.
once ftping GET and PUT is finishes i am deleting from server1 and server2.

basicaly i requires files on server3 from server1.Policywise it is not possible to connect server 3 ans server1 on same subnet.

i am looking for solution to copy/ftp files from server1 to server 3 directly using server 2 as either router or intermediate server.

my working solution is taking double time ,one for geting files and one fot puting files.


Any idea or logical solution.
  #2 (permalink)  
Old 12-19-2008
aixylinux aixylinux is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 36
From host2 you can copy from host1 to host3 using scp.
scp [[user@]host1:]file1 [...] [[user@]host2:]file2
You don't have to stage the files on server2.
There's an sshd server in the Cygwin package if you don't already have sshd on server3.

And it also occurs to me that you don't have to have the servers on the same subnet to communicate directly from server1 to server3. If you set up static routes on each system so that each "knows" which interface to use for communication with the other subnet, the IP routing should do the job.

Last edited by aixylinux; 12-19-2008 at 12:22 PM.. Reason: New idea
Closed Thread

Bookmarks

Tags
ftp, server routing

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:05 AM.


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