Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-06-2005, 11:07 PM
|
#1
|
Member
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264
Rep:
|
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".
|
|
|
10-07-2005, 12:18 AM
|
#2
|
Member
Registered: Jun 2004
Location: Denton
Distribution: debian, freebsd
Posts: 121
Rep:
|
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.
|
|
|
10-07-2005, 04:29 AM
|
#3
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596
Rep:
|
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.
|
|
|
10-07-2005, 08:02 AM
|
#4
|
Member
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264
Original Poster
Rep:
|
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!
|
|
|
10-07-2005, 08:20 AM
|
#5
|
Member
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464
Rep:
|
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
|
|
|
10-07-2005, 08:25 AM
|
#6
|
Member
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264
Original Poster
Rep:
|
How do i mount a samba share?? ($ mount ......)
|
|
|
10-07-2005, 10:12 AM
|
#7
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596
Rep:
|
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.
|
|
|
10-07-2005, 10:15 AM
|
#8
|
Member
Registered: Jun 2004
Location: San Francisco
Distribution: Slackware, Ubuntu, RHEL, OS X
Posts: 159
Rep:
|
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.
|
|
|
10-07-2005, 05:56 PM
|
#9
|
Member
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:28 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|