LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2013, 09:25 AM   #1
AlexMichael
LQ Newbie
 
Registered: Nov 2013
Posts: 2

Rep: Reputation: Disabled
How to transfer files remotely


Hi all
I am new to Unix
I want to copy files from a remote location (which is a Unix based machine) to my Window or my Mac.
What should I do?

I can ssh without a problem but that about it for me.
What are the next steps?

Thanks

PS: Also, how can I copy files from my machine to the remote location?
 
Old 11-22-2013, 09:41 AM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Since you have ssh working, use the scp command to transfer files. Scp stands for secure copy. On a linux system there are man pages that describe its use. No idea what help you can find on windoze or a mac.

There are many other choices as well. Each depends on the system you are connecting to. You can ftp files if there is a ftp server running, and you are allowed to by system user, password etc. Same thing for nfs, or even windows file sharing. Each requires a server running, a user ID and password. Each has its own benefits, and security risks. You need to contact the sys admins to know what you can, or can not do.
 
2 members found this post helpful.
Old 11-22-2013, 10:32 AM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by AlexMichael View Post
Hi all
I am new to Unix
I want to copy files from a remote location (which is a Unix based machine) to my Window or my Mac.
What should I do?

I can ssh without a problem but that about it for me.
What are the next steps?

Thanks

PS: Also, how can I copy files from my machine to the remote location?
in addition to what has been mentioned for your MS Windows computer, download and install Filezilla. This is a GUI front end for a scp transfer between MS and *nix. That will make your life much simpler then having to deal with the command line. its click and drag as if the files were local on your MS computer.

As for the OSx box, there are a few GUI front ends that allow for scp file transfers like Filezilla, but as Im already comfortable with the command line (CLI) i just use the terminal and either scp or rsync the files around.

some examples
Code:
from server A (your local computer) to server B (remote computer) 
$ scp /path/to/local/file r_user@r_IP:/path/to/put/file/on/remote/server

from server B to server A

$ scp r_user@R_IP:/path/of/file/to/copy /path/to/store/file

rsync from server A to server B

$ rsync -aviS /path/to/local/file r_user@r_IP:/path/to/put/file/on/remote/server

rsync from server B to server A

rsync -aviS r_user@R_IP:/path/of/file/to/copy /path/to/store/file
as you can see the pattern for both scp and rsync. its command, options, source, destination. Also if you read the links in my signature you can setup ssh keys for your OSx box so you can push/pull files without the use of a password, thus things can be scripted. There is a way of doing this in the MS world, but sadly I have no clue how.
 
2 members found this post helpful.
Old 11-22-2013, 10:45 AM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Quote:
Originally Posted by AlexMichael View Post
Hi all
I am new to Unix
I want to copy files from a remote location (which is a Unix based machine) to my Window or my Mac.
What should I do?

I can ssh without a problem but that about it for me.
What are the next steps?

Thanks

PS: Also, how can I copy files from my machine to the remote location?
scp works on top of the ssh protocol. you would need a windows scp client (i've used winscp in the past).
 
1 members found this post helpful.
Old 11-22-2013, 09:53 PM   #5
AlexMichael
LQ Newbie
 
Registered: Nov 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Please go easy with me. Break it down to me. I am a new kid in the blog. Some of your vocabularies are too professional for me.

Assume that you are explaining it to a newcomer.

Thank you/
 
Old 11-23-2013, 01:55 AM   #6
mddnix
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 498

Rep: Reputation: 137Reputation: 137
http://www.hypexr.org/linux_scp_help.php
 
1 members found this post helpful.
Old 11-23-2013, 10:27 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Member Response

Hi,

Welcome to LQ!

LQ is not a blog but a moderated forum.

As for a MS Windows secure copy from UNIX/Linux machine you can download & install WinSCP on your MS Windows machine. Simple setup & use.

Hope this helps.
 
Old 11-23-2013, 10:39 AM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,321
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
You could always setup an ftp server on the remote machine. Windows has a built in ftp command that you can run from an msdos prompt. Netcat and other options depending on the computer in question. Various cloud services to host files for you to bridge the gap while only needing a web browser on both ends. It really depends on where and what. A lot of work places block ports for things like ftp, ssh, and other not part of your job services. But there's still dozens of ways to manage depending on your limitations.
 
Old 11-23-2013, 10:54 PM   #9
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by AlexMichael View Post
Please go easy with me. Break it down to me. I am a new kid in the blog. Some of your vocabularies are too professional for me.

Assume that you are explaining it to a newcomer.

Thank you/
please re-read my post and use quotes to ask specific questions that were not clear in your mind. ill be happy to get into more detail when you tell me what is not so.
 
Old 11-26-2013, 04:32 AM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
In your position I agree that the (GUI) Filezilla tool downloadable (free) from here https://filezilla-project.org/download.php?show_all=1 would be a good idea.
 
Old 11-26-2013, 10:38 PM   #11
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 810

Rep: Reputation: 264Reputation: 264Reputation: 264
I like this version of WinSCP. It's portable, so you can use it on a flash drive. BUT it leaves a file in the %APPDATA% folder on the machine, so I would recommend not saving any passwords or IP addresses with it. I just have a text document with my IP and port number saved next to it on the flash drive, and I know my username and password

This is a link directly to the download page, so it will ask to download a few seconds after you click on this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remotely Diff Two files metallica1973 Linux - General 3 07-17-2013 11:54 AM
Need to remotely transfer files easily hd1080 Linux - Software 2 03-26-2010 07:10 AM
Batch files to execute and transfer files via sftp cm67 Linux - General 5 08-13-2009 10:59 AM
backing up files remotely using a script depam Linux - Software 1 10-19-2005 01:59 AM
Tar files remotely depam Linux - Software 2 10-05-2005 04:15 AM


All times are GMT -5. The time now is 10:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration