Commands to copy a tar.gz file from a Remote Unix Server to Local Desktop.


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Commands to copy a tar.gz file from a Remote Unix Server to Local Desktop.
# 1  
Old 08-26-2008
Commands to copy a tar.gz file from a Remote Unix Server to Local Desktop.

Hi,

Just wanted to know, how can I ftp/transfer/copy a (design.tar.gz) archive from a Unix Server (sdmc222.sdmc.cp-srv.com) which is at a remote location, to my Windows Desktop. Obviously, it is not possible at cmd prompt on my Windows using the following commands :-

ftp sdmc222.sdmc.cp-srv.com
ftp> pwd
ftp> lcd c:\
ftp> bin
ftp> get password
ftp>

as the above Unix Server is not a Local Server.

I know that this can be done using WinSCP or using a SARA client with VPN,
but just wanted to know all the commands(using both WINSCP and SARA with VPN), which have to be used to copy (design.tar.gz) archive from one of the directories on the Remote Unix Server (sdmc222.sdmc.cp-srv.com) to my local Windows Desktop or C:/

Request you to please let me know all the commands.

Thanks a lot in advance.

With Best Regards,
Marconi.
# 2  
Old 08-26-2008
you can use ssh. If you are running on a windows client, you can download a free copy of ssh called putty and pscp from PuTTY Download Page. putty is the login client and pscp is the file copy.

Then, you can type:

pscp user_id@remote_systemSmilieath_to_file local_name

so for example, if I wanted to retrieve the /etc/profile from the remote system "gandalf" and my user id is joe1234, I can type:

pscp joe1234@gandalf:/etc/profile profile

you will be prompted for a password most likely unless the system is set up to use certificates.

putty is also a much better client than telnet both from a usability and security standpoint.

Hope this helps.
# 3  
Old 08-27-2008
You can install openssh for Windows32, which gives you only command-line utilities. From here, you could do something like:

Code:
scp username@sdmc222.sdmc.cp-srv.com:password C:\\

In order for this to work without a password, you'll need to create a .shosts file containing the windows username and hostname. The .ssh/known_hosts file must contain the window's host key.
# 4  
Old 08-28-2008
man wget

wget URL
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to Append the output of a script running in remote server to a file in local server?

Hi guys, So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies

2. Shell Programming and Scripting

Copy one file from a server to a local folder

Hi, Is there a way I can copy a file from a server to a local folder (i.e. My Documents)? can it be done by scp? I tried this but it just rename the file as the folder it has to be transferred at. scp -r name@some_server:/home/user/file.txt 'somehere\home\home_dir' Thanks. (4 Replies)
Discussion started by: erin00
4 Replies

3. UNIX for Dummies Questions & Answers

How to copy files from remote server to local?

Hi experts, I 'm newbie to unix world, now I have task to copy the latest files from remote server to my local. I believe this must be very common request in this community. I want you do it one more time for me please. My requirement is something like this: I receive files in the below... (3 Replies)
Discussion started by: parpaa
3 Replies

4. Shell Programming and Scripting

How to create a file in remote server from local server?

hi, can anyone tell me how can i store the names of a file that are in remote server to a file and then get the file that contains the name in local server? there is a remote server where 5 files are present , say a.txt b.txt c.txt d.txt e.txt i want to write a script in my local... (4 Replies)
Discussion started by: Little
4 Replies

5. Shell Programming and Scripting

Copy a file from local host to a list of remote hosts --- perl script

Hi friends, i need to prepare a script ( in perl) i have a file called "demo.exe" in my local unix host. i have a list of remote hosts in a file "hosts.txt" now i need to push "demo.exe" file to all the hosts in "hosts.txt" file. for this i need to prepare a script(in perl, but shell... (5 Replies)
Discussion started by: siva kumar
5 Replies

6. UNIX for Dummies Questions & Answers

Remote desktop for mac unix commands

So Ive been a bit confused dealing with ssh keys or something else, who knows maybe someone can help. I run a set of computers on a network which are all running mac os x lion. I have a lion server serving them all up. I run remote desktop to update them and do anything else "tech" support... (13 Replies)
Discussion started by: jcahn93
13 Replies

7. Shell Programming and Scripting

preserving the timestamp of a file when copied from remote server to local server using ftp

Hi, I need to copy few files from remote server to local server. I write a shell script to connect to the remote server using ftp and go to that path. Now i need to copy those files in the remote directory to my local server with the timestamp of all those files shouldnt be changed. ... (5 Replies)
Discussion started by: arunkumarmc
5 Replies

8. UNIX for Dummies Questions & Answers

Copy file from local machine to server?

I am logged into a server via SSH. There is a file on my desktop of my Windows PC I would like to put on that server. How do I do it? SCP looks the likely method but how does the server know where the file is on the local machine? Thanks. (2 Replies)
Discussion started by: Sepia
2 Replies

9. Shell Programming and Scripting

Transfer file from local unix server to remote server

want to remove this thread. thanks (2 Replies)
Discussion started by: indira
2 Replies

10. HP-UX

Transfer file from local unix server to remote server

want to remove the thread thanks (2 Replies)
Discussion started by: indira
2 Replies
Login or Register to Ask a Question