Click to See Complete Forum and Search --> : Exchanging files between 2 linux boxes


Dutch Mafia-boy.
03-10-2003, 11:32 PM
OK.....I know how to mount files and all that jazz between a windows share and a linux box......

but what if I have files on one linux box that i want to copy onto the other one??.....how would I do that??

Hayl
03-10-2003, 11:38 PM
if you want to do it with shares then: with samba if you have it installed on both or with NFS if you have that set up on both.

knute
03-10-2003, 11:38 PM
uucp stands for Unix to Unix CoPy

I've never used it before, but that's what you'ld use. :)

HTH

KWTm
03-10-2003, 11:47 PM
By far the easiest way, I've found, to copy files from one box to another, whether *nix or MS Windows, is to use FTP. Most distributions of Linux come with the FTP daemon set up (and if you don't want it, you have to struggle with it to keep it from being set up).

FileZilla works great on MS Windows boxes; I go to 192.168.1.103 (where my Linux box is), giving my own username and password, and in a flash, I'm in.

If you use Midnight Commander (command-line only, I'm afraid, but a very handy program: use it in xterm if you run X Windows), it's even easier. You can see that Midnight Commander can browse files on your own hard drive, but simply issue the command

cd /#ftp:username@192.168.1.103

and it will log in, and you'll be able to copy entire directories and basically manipulate files as if they were on the same hard drive.

Fryguy8
03-10-2003, 11:55 PM
Ermm, I'd HARDLY say that most distros come with an FTP server already set up. I've never used a distro that came with one already set up.

However, ftp IS a good solution

Dutch Mafia-boy.
03-11-2003, 12:28 AM
yeah, I know about FTP, but thats no fun! I want to learn and get a challenge!! This NFS looks to be an interesting project....I'm already pulling my hair out !

Magueta
03-11-2003, 01:03 AM
If you're looking to have some fun, how about setting up Apache server and creating a webpage with a link that'll allow you to download the files that you want. Apache is both a useful skill to learn and there's lots of it. You'll probably have stuff to play with for the next year with secure authentication, CGI, PHP, and Perl. Have fun.

Joe

chrism01
03-11-2003, 09:48 AM
if its between Linux systems, use scp, especially if its over a public link. You can use Putty under windows for scp also.

Crackmunch
03-11-2003, 10:28 AM
I have to agree with chrism01 SCP is by far the easiest for me.

scp (file name) (remote IP or host name)":"(/location you want to put it on remote machine) NOTE: remove the "". With out them itl give you :( here in the forum.

scp firestarted.tar.gz 192.168.0.1:/root

It will ask you for root password and transfer the file.

Hope it helps.

InferiorWang
03-11-2003, 03:03 PM
Originally posted by Fryguy8
Ermm, I'd HARDLY say that most distros come with an FTP server already set up. I've never used a distro that came with one already set up.

However, ftp IS a good solution Mandrake set up ftp right away without me asking. It's a good thing though, since the boxes at school won't let me ftp in. So I ssh in and then ftp back to my computer and transfer files.

bwkaz
03-11-2003, 03:40 PM
You do realize that FTP sends your username and password in cleartext across the network, right? So anyone snooping on any of the network segments your connection passes through can sniff your password right from the wire?

scp (and ssh, and sftp) don't, which is why chrism01 recommended it.

KWTm
03-12-2003, 07:35 AM
Yes, I realize that FTP provides a huge security loophole. On my home system, where the two computers are in the same room connected by a $25 router box, it doesn't matter that much. Also, I get to use mc (Midnight Commander), which has FTP built in. I don't think it has scp built in.

I'm still trying to figure out how to use sFTP (SecureShell type FTP). I tried using Win2k-to-Slackware, but for some reason the connection kept being dropped right at login. It would be great if I could get that set up, since I want to reach home from my work computer.

And, yes, if the computers are not hooked up via a direct short network, then FTP leaves you wide open to attacks.

chrism01
03-12-2003, 01:10 PM
try scp as described above. its a 1 line cmd :)
... and like cp it'll take wildcards.....
Personally I avoid ftp unless there's no choice, even on my own lan... too fiddly to setup correctly/use. NB I like to set most things up via editing the conf files from the cmd line. Default installs are not good enough.

Dutch Mafia-boy.
03-13-2003, 11:18 PM
Thanks all for your suggestions!!

I used scp ! Thank-you Crackmunch & chrism01 for letting me know about this alternative.....it exactly what i was looking for --> a quick& dirty and SECURE solution as opposed to FTP. Worked like a charm. I'm also gonna setup a NFS ....I learned lots from this post!

Adrian