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 > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Automatically copying files from server to local drive? Sepia UNIX for Dummies Questions & Answers 1 06-06-2008 12:24 AM
Transfer file from local unix server to remote server indira HP-UX 2 05-02-2007 05:15 PM
FTP multiple files from remote server to local server berlin_germany Shell Programming and Scripting 2 12-20-2006 03:24 AM
Copying files from laptop to remote server using SSH patwa UNIX for Dummies Questions & Answers 3 11-22-2006 04:14 AM
copying files to a remote aix server using tar! system-admin AIX 2 11-17-2006 03:30 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 02-07-2007
patwa patwa is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 23
Copying files from a remote server to local system with cygwin

Hi. I'm sorry if I get on people's nerves asking this, but I don't really understand how to do this and unfortunately don't have the time to work through it step by step in books, etc.

At University, we have a unix server that hosts our files. we each have a login and password to access it. I would like to copy the files in my home directories there to my laptop. due to security, the only way I'm even able to access the files let alone do anything with them is to ssh in through cygwin which I've installed.

I do:
ssh -l username host
password

Then I can cd to the directories. But here's where I'm stuck.

I'm not sure of the format to copy a file to my home directory on my cygwin, because home when I'm logged into the server is the home directory on the server. But if I open another cygwin window, I can't seem to access the Uni files in the other window.

My laptop has an IP address from the wireless network I'm connect to.

Can anyone help me with this please? I'm sure it simple, basically copying from HOME where I'm logged in to HOME on my laptop but how do I specify the laptop? Is it just the IP/home as in 139.133.123.456/home?

sorry if this is too vague, they're not prepared to take people through the basics of Unix, well transferring between computers like this anyway as I'm the only one that needs to do it due to not being able to access the Unix systems directly (partially sighted).

Thanks.
  #2 (permalink)  
Old 02-16-2007
shesatmine shesatmine is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 8
I think you should use sftp to transfer the files from your university account to your laptop.

The thing is quite easy: first, working in your laptop's cygwin, go into the directory where yo want the files to get transfered.
Then, connect to your university using sftp program, sftp username@host and then enter your pasword. Once you are in, cd to the directory where your files are. You can now use the comand "get" to transfer the files to your laptop: get file1, get foo.txt, etc.

I hope this helps you (I've read your message quickly)
  #3 (permalink)  
Old 02-21-2007
patwa patwa is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 23
Thanks. I eventually just used a windows client, as i couldn't get the get command to work for a whole directory. How can I do it the other way around?

I have one terminal logged into my website with ssh. I'm in the directory i want to upload to.

I have another terminal where i'm in the directory which comtains files and folders i want to transfer. how do I copy those files and folders to the directory in the first terminal?

Thanks.

H.
  #4 (permalink)  
Old 06-12-2008
jhoomsharabi jhoomsharabi is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 3
USE scp to transfer your files:

on your cygwin command prompt type command like this;

scp -r <user_name>@<host_name or host_ip>:<Path to your directory> <target_path_dir>

For eg.
Source dir= /home/patwa/mywork
Host= UnixServer
User Name= patwa
Target dir=/cygdrive/d/patwa

then command will look like this:
scp -r patwa@UnixServer:/home/patwa/mywork /cygdrive/d/patwa

if above command gives error for "/cygdrive/d/patwa"
than
cd /cygdrive/d/patwa

scp -r patwa@UnixServer:/home/patwa/mywork .
Sponsored Links
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 06:02 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