LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-06-2005, 11:07 PM   #1
wwnexc
Member
 
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264

Rep: Reputation: 30
Post NOOB: how to access other computers??


Hi,

I've been working with linux a few weeks now; i set up a nice, small web server, mail server etc...

Now i am stuck: how do i share, move or access files from an other computer (linux)?

What is the standard way of moving, accessing, writing ... files to an other linux box from a linux box? (ssh maybe, if yes, how??)

The topic seems to be too simple, because i hardly found a single page about this online...

Thanks
wwnexc

PS: As i said befor, i am a noob, when it comes to networking linux PCs / server to their "peers".
 
Old 10-07-2005, 12:18 AM   #2
fenderman11111
Member
 
Registered: Jun 2004
Location: Denton
Distribution: debian, freebsd
Posts: 121

Rep: Reputation: 15
you should look into samba; it's the open source version of Microsoft's SMB+NMB, so basically you can share files between linux and windows hosts. It's generally the most noob-friendly. Search google for Samba howto's. Samba is best used on a local network, for sharing files windows-style.

For a webserver, samba is probably not the best thing; you're probably going to want to use FTP or SFTP. But, FTP is a pain and is insecure, so you should probably use SFTP.

If you have SSH set up, you can use SFTP as well. As you might be able to guess, using it is quite similar to using a regular FTP client, only it's tunneled through SSH giving you a layer of security. This would be most useful if you need to get files from your linux box from outside of your local network. SFTP is used like this:

$ sftp user@host

there are also GUI clients that are capable of using SFTP, such as gFTP.

hope this was at least somewhat helpful :P Reply back if you need more specific info.

-Brandon

Last edited by fenderman11111; 10-07-2005 at 12:21 AM.
 
Old 10-07-2005, 04:29 AM   #3
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
FTP is simple for quickly tranfering some files every now and then.

If you need to share files more intensively (like in editing remote files directly), have a look at NFS. It is like samba, but more standard, more secure and more mature for *nix.

Have fun.

Last edited by Agrouf; 10-07-2005 at 04:30 AM.
 
Old 10-07-2005, 08:02 AM   #4
wwnexc
Member
 
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264

Original Poster
Rep: Reputation: 30
is ther a way to transfer files per shell script between to computers over ssh of sftp? If yes, how would the file transfer commands look? What would be a short sample script?

Thanks for the tips so far!
 
Old 10-07-2005, 08:20 AM   #5
okmyx
Member
 
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464

Rep: Reputation: 31
Write a script that would:

Step 1) mount your NFS/Samba/whatever share
Step 2) Copy required files
Step 3) unmount share

You could then put the script into a CRON job and have it run automatically hourly/daily/weekly
 
Old 10-07-2005, 08:25 AM   #6
wwnexc
Member
 
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264

Original Poster
Rep: Reputation: 30
How do i mount a samba share?? ($ mount ......)
 
Old 10-07-2005, 10:12 AM   #7
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Quote:
Originally posted by wwnexc
is ther a way to transfer files per shell script between to computers over ssh of sftp? If yes, how would the file transfer commands look? What would be a short sample script?

Thanks for the tips so far!
I believe what you are looking for is scp, or rcp, because I don't believe you need to encrypt your file over your local network.
Type man rcp for more info. There are examples at the end of the manual pages.
 
Old 10-07-2005, 10:15 AM   #8
uopjohnson
Member
 
Registered: Jun 2004
Location: San Francisco
Distribution: Slackware, Ubuntu, RHEL, OS X
Posts: 159

Rep: Reputation: 30
also check out rsync, which is great for moving lots of data back and forth. There is a tutorial on rsync backups in the Tutorials area, so I'm not going to say any more.
 
Old 10-07-2005, 05:56 PM   #9
wwnexc
Member
 
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264

Original Poster
Rep: Reputation: 30
Thumbs up

Thanks!! You guys rock!!

Now that i have some more search terms, a little bit of "googleing" should do the trick. I think i am going to use samba for other windows computers in the network, and sftp (with certificates) for traffic / maintenance from the internet.
 
  


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
LAN problem: 2 computers access microsmart Linux - Networking 1 10-10-2005 05:15 AM
[SOLVED] noob with httpd-access.log (Attempting to Crack me?) kwlskwlguy Linux - Security 6 08-10-2005 06:47 AM
Help a noob programmer - Access the $PATH antjf Programming 2 10-24-2004 01:24 PM
Firewall help (noob really really huge noob) ProtoformX Linux - Networking 1 03-29-2004 12:19 AM
Complete noob question from a noob noob_hampster Linux - Software 2 09-04-2003 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:28 AM.

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
Open Source Consulting | Domain Registration