Copying a file from one server to another (behind firewall.)
Hi,
I want to copy a file from one server A to another server B. Usually I use
However, in this particular case, I have server C behind a firewall. So, I connect to Server B and ssh over to server C.
--this is the source server--
cleveland</home/jdoe><jdoe>#
--this is the "hop over" server--
[jdoe@ford:/home/user]> pwd
/home/jdoe
--this is where I want the file--
----this is what I tried unsuccessfully----
Can someone tell me how do I do this or what i am doing wrong here? I know this can be done, because I have seen my colleagues copy files from Cleveland to Xtra400. I asked them, and all they say is since XTRA400 is behind a firewall, you ssh over to it from ford, and then copy over the file!
Please help me!
Last edited by vbe; 08-23-2010 at 12:17 PM..
Reason: code tags...
Presumably the same way you'd copy from any other machine. We're pretty limited on the details of your network and firewall here.
Really, though: Reading the error messages can be a worthwhile pastime. Your previous attempt failed, not because of a firewall, but because the originating system didn't know who ford was. It never even tried to copy the file, just spun for a while looking for the 'ford' hostname then gave up. If you give it the IP address for ford instead of the name "ford", it might work.
Hi,
I need to run a SQL which check for special UTF char in DB. When I try to copy that in UNIX file it changes it to some wierd chat. How can in retain the UTF chars in my script?
e.g. ο|π|ρ|σ|τ|υ|φ|χ|ψ
Any help will be appriciated.
Thanks, (14 Replies)
Hi Team,
I had a requirement to write a shell script which automatically transfer the files from unix server to windows server. I can able to unix to unix using Scp command. I am not sure how to do unix to windows.
I am very new on this concept.
Could you please help me or guide in... (4 Replies)
Hello people,
I have a question regarding transferring data from one file server to another.
The server is a Solaris 9 box
The old file server is connected via Ethernet cable, and the new file server we are switching is a Fiber channel.
can I use the
dd if=server:/app1 of=server2:/app1
... (2 Replies)
I spent hours trying to create a system where the name server returns a value of 192.168.100.5 locally, but 209.137.nnn.nnn for requests outside of the firewall.
If I run "nslookup mail.mydomain.com" from a machine inside the firewall, the 192.168 number is returned, but if I do "nslookup... (3 Replies)
Could you please let me know, if the crontab for a user (eg test)in /var/spool/cron/crontabs directory can be copied from one server to other server. Both the servers are on AIX 5.3 and the target servers has the test user and all the executable files listed in the crontab for the test user on the... (1 Reply)
Hey all,
i want to copy only the file names from an ftp server (directory and all sub directory) to a text file in another server (non ftp), i.e. i want to recursively move through directories and copy only the names to a text file.
any help is appreciated...thank you in advance (1 Reply)
Hello,
I'm trying to create the shell script that:
copy (or transfer) the directory from the unix server to my external hard drive (or hard drive)
I've been serching this kind of thread here, but no luck so far. anyone can help me? Thank you. (2 Replies)
I need to copy around 30 directories (each directory include one or more text file(s)) from NT server to Unix server at one go. For doing this what are the privillages i should have in both NT and Unix server.
Please let me know which command i can use in shell prompt.
TIA. (4 Replies)
Hello, I am really new to solaris and I want to know the easiest way to copy a file from a solaris server to an Iomega NAS running windows 2003 server. Can I map the drive on the windows box so the solaris server can see it. Any advice would be appreciated. (1 Reply)