you can use file transfer protocols like ftp, scp etc
Read up more on them
This might help you
http://www.umbc.edu/oit/sans/helpdesk/ftpguide.html
2006-06-22 20:46:42
·
answer #1
·
answered by Neil 5
·
0⤊
0⤋
There are many ways, but the easiest by far (because it's likely already set up on your computers, and is secure unlike FTP) are the programs SSH and SCP.
Let's assume you have two computers: one is in front of you running Linux (machine A), and the other is in the next room on your local network, and also runs Linux (machine b). Assume for this demonstration that you have a user account on each machine, and they are the same: username fred and password pizza. Machine A has an ip address of 192.168.0.1, and Machine B has an ip address of 192.168.0.2.
First: from machine A, open a terminal window. Call that window A.
Next: from machine A, open a second terminal window. Call that window B.
From window B, enter:
ssh fred@192.168.0.2
...and when prompted, enter your password...
password: pizza
You should now be logged into machine B using SSH in window B. If not, there are many things that might be wrong; wrong ip address, SSH not configured or installed on both machines, firewalls or whatnot in the way -- that's outside the scope of this document.
Now, let's say we want to transfer the file /home/fred/magictricks.txt from machine A to the /home/fred/ directory on machine B.
Type this into window A:
scp /home/fred/magictricks.txt /home/fred/
...and enter your password when asked...
password: pizza
This will transfer the file to machine B. In window B, type...
ls /home/fred/
You'll get a directory listing for /home/fred/ on machine B, and the file magictricks.txt should now be there!
That's the basics. For more information, type...
man scp
...into the command line of either machine, and read the details about that application.
A few things to keep in mind:
1. If you don't understand things like Unix directory structures and file permissions, you need to learn about them before trying to do this;
2. If there's a file of the same name on the destination machine (in this case, machine B) in the same directory, that file will be overwritten by the one on the source machine (in this case, machine A.)
3. SCP copies files using the same encryption that SSH uses; you probably don't need your file transfers encrypted, but isn't it nice to know that they are?
Hope this helps. By the way, SSH means "Secure SHell", and SCP means "Secure CoPy".
2006-06-22 20:56:08
·
answer #2
·
answered by daveowenville 4
·
0⤊
0⤋