Ftp from server1 and upload to server3 from server2


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Ftp from server1 and upload to server3 from server2
# 1  
Old 12-19-2008
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  
Old 12-19-2008
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

File Management: Removing of files from Server2 IF the same file is removed from Server1.

Hi Folks, I have a requirement of file management on different servers. Source Server is SERVER-A. Two servers will fetch files from SERVER-A: SERVER1 and SERVER2. 4th SERVER is SERVER-B, It will fetch files from SERVER1. If SERVER1 goes DOWN, SERVER-B will fetch pending files from... (2 Replies)
Discussion started by: Raza Ali
2 Replies

2. Solaris

Defumask and upload directive in ftp

Hi, I'm aware that this question has been raised earlier and the solution provided has not helped me. So, the issue is that I'm trying to set a defumask to files transferred via ftp to be 002 so that the group may have write permissions to the files uploaded. We have local/system users... (5 Replies)
Discussion started by: maverick_here
5 Replies

3. UNIX for Dummies Questions & Answers

Connect server2 from server1 to compare files

Hi ALL, Requirement:Connect server2 from server1 and get the list of files generate on currentdate . Basically i need to check the files in server1 and server2 on currrent date is equal on each 1 hr frequency. Can anyone help me on this. Thanks in advance Hari (2 Replies)
Discussion started by: psthariharan
2 Replies

4. Shell Programming and Scripting

How to display files of server2 in server1?

hi, i have two servers in unix. say server1 and server2. my shell script is running on server1. In server2, there is a directory (/etc/data/) which contains some text files. I want to write the list of filenames in server2 in a file and display the file in server1. In short, i want to... (3 Replies)
Discussion started by: Little
3 Replies

5. Shell Programming and Scripting

FTP Upload

Can any one help in writing FTP upload script using bash .. with specific port -oPort=62022 #/bin/bash FTPU="username" # ftp login name FTPP="password" # ftp password FTPS="localhost.com" # remote ftp server FTPF="/test" # remote ftp server directory for $FTPU & $FTPP port="2345"... (3 Replies)
Discussion started by: ram5019
3 Replies

6. Shell Programming and Scripting

FTP upload

Hi All, I am new to this forum and i need help from you . Here i want to get a mail conformation when ever the file was uploaded to FTP server.Here is my FTP script . Can any one plz help me how to get a mail confirmation weather the file was uploaded or not. #!bin/sh HOST='192.168.2.85'... (4 Replies)
Discussion started by: qfund
4 Replies

7. Shell Programming and Scripting

how to append file contents at server1 to another file in server2

hi is there any way to append the file contents at server1 to another file in server2 by using scp. right now am transferring files to the server2 and using cat command for appending... (2 Replies)
Discussion started by: aemunathan
2 Replies

8. HP-UX

not able to upload the pjl commands thru ftp

Hi , By status requests to the printer using the PJL commands like status_read_back there is no answer. The printer itself is functioning well and is printing all requests. Ping, lpstat -t, nslookup is functioning well. The printer model is HP LJ 4200. The printer has been configured as network... (1 Reply)
Discussion started by: amit kul
1 Replies

9. Linux

upload FTP

I have a ftp server up , however when I upload a file from my desktop to the server I get this message: ftp> get uploadtest.txt Local: uploadtest.txt Remote: uploadtest.txt 227 passive Mode ( 192,168,0,1,190,75) 550 Failed to open file ftp> (3 Replies)
Discussion started by: keliy1
3 Replies

10. UNIX for Advanced & Expert Users

Ftp Upload Folder

Hi! I'd like to upload a complete folder with subfolders with put. At the moment I always get the err-msg: aboutme: not a plain file Could anyone help me?? Thanx (3 Replies)
Discussion started by: roberthawke
3 Replies
Login or Register to Ask a Question