You are not logged in.

#1 2009-01-15 22:52:21

BeholdMyGlory
Member
Registered: 2008-08-30
Posts: 93

Transfer a file to another computer in another network

Say I have a computer A, my computer.
And then computer B, a friends computer.
Both are running Linux.

What is the easiest way to send the file "file.txt" from computer A, to B, without having to set up too much?

Offline

#2 2009-01-15 23:01:01

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: Transfer a file to another computer in another network

Email/online file upload sites? Otherwise, there are some simple file sharing scripts here on the forums.

Offline

#3 2009-01-15 23:07:40

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Transfer a file to another computer in another network

SSH is the simplest, really wink. Set up the SSH daemon on his end, let him create you an account, and you can copy the file over by doing

scp $file IP:/path/to/destination.

Uploading file may be easier but SSH certainly is quicker (no additional download time, you just upload to him directly).


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2009-01-15 23:08:34

tsv
Member
From: UK
Registered: 2008-12-03
Posts: 71
Website

Re: Transfer a file to another computer in another network

scp wouldn't require much setting up, but it all depends what you mean by "too much". Email/file-upload sites, as SamC says, requires the least setting up, but once it's set up scp or an FTP server would require less clicking and annoyances.

Offline

#5 2009-01-15 23:09:16

tsv
Member
From: UK
Registered: 2008-12-03
Posts: 71
Website

Re: Transfer a file to another computer in another network

B wrote:

SSH is the simplest, really wink.

Gr, beat me to it!

Offline

#6 2009-01-15 23:17:00

venky80
Member
Registered: 2007-05-13
Posts: 1,002

Re: Transfer a file to another computer in another network

SSH is simple only if he has a static IP otherwise u have to tunnel


Acer Aspire V5-573P Antergos KDE

Offline

#7 2009-01-15 23:18:06

BeholdMyGlory
Member
Registered: 2008-08-30
Posts: 93

Re: Transfer a file to another computer in another network

B wrote:

SSH is the simplest, really wink. Set up the SSH daemon on his end, let him create you an account, and you can copy the file over by doing

scp $file IP:/path/to/destination.

Uploading file may be easier but SSH certainly is quicker (no additional download time, you just upload to him directly).

Hm. I'm aware of how scp works, but would you mind explaining a bit on how to set up the SSH daemon, or at least point me to somewhere I can find out? Might be worth mentioning that he's running (K)ubuntu, if the setup differs any.

Last edited by BeholdMyGlory (2009-01-15 23:20:02)

Offline

#8 2009-01-15 23:29:57

Xappe
Member
Registered: 2008-05-17
Posts: 105

Re: Transfer a file to another computer in another network

In Ubuntu, just "apt-get install openssh-server" and you have a working (although maybe not very secure) server up and running without configuration. You should then tweak the /etc/ssh/sshd_config for security.


vanum est vobis ante lucem surgere

Offline

#9 2009-01-15 23:41:09

gishten
Member
Registered: 2009-01-09
Posts: 39

Re: Transfer a file to another computer in another network

BeholdMyGlory wrote:
B wrote:

SSH is the simplest, really wink. Set up the SSH daemon on his end, let him create you an account, and you can copy the file over by doing

scp $file IP:/path/to/destination.

Uploading file may be easier but SSH certainly is quicker (no additional download time, you just upload to him directly).

Hm. I'm aware of how scp works, but would you mind explaining a bit on how to set up the SSH daemon, or at least point me to somewhere I can find out? Might be worth mentioning that he's running (K)ubuntu, if the setup differs any.

https://help.ubuntu.com/community/SSHHowto#Introduction

Give it a try smile


Believe in the Ideal, not the Idol.

Offline

#10 2009-01-15 23:41:56

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Transfer a file to another computer in another network

venky80 wrote:

SSH is simple only if he has a static IP otherwise u have to tunnel

Incorrect. SSH works just fine with dynamically-assigned IP addresses - no tunnel required. They can set up dynamic dns, or just tell each other whenever their addresses change.

Offline

#11 2009-01-15 23:48:14

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Transfer a file to another computer in another network

Indeed, there's no reason a dynamic IP shouldn't work. They could both register with a service like DynDNS (or only one of them) and assign a hostname to both their computers to make it easier - that's how I set up various Linux routers and systems I maintain smile.

Just keep track of the hostname, make sure the box it's connected to has a utility to update the DynDNS cache, and you're good to go. No need for pesky IP addresses anymore wink.

The advantage of SCP is also it does encrypted transfers, and most sites don't do that (at least not that i know of). So no need to worry about pesky noseyparkers wink.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#12 2009-01-16 08:18:37

xcession
Member
From: Udon Thani, Thailand
Registered: 2008-05-07
Posts: 72
Website

Re: Transfer a file to another computer in another network

+1 to scp

Offline

Board footer

Powered by FluxBB