Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
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.
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?
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.
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.
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.
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