DSL Tips and Tricks :: connect 2 dsl pc's
i have 2 dsl machines connected at an ethernet router.
how to communicate and share file from machines 1 to machine 2 and viceversa?
If you are staying current with DSL versions, I find the easiest way to "mount" remote directories is to use sshfs.
Say machine 1 is the "server" and machine 2 is the "client"
On machine one:
Setup password for user root
start ssh either from the control panel or at boot time with boot option ssh
On machine 2:
sudo modprobe fuse or use the boot time option fuse
Then to mount machine1's /tmp directory on machine2 you can do something like this
sudo sshfs root@machine1_ip:/tmp /mnt/test
You will be prompted for root's password on machine1
If successful then on machine2 you can access machine1 /tmp by accessing /mnt/test
Best to google sshfs for all the full details and options available.
I tried that. I needed to be root on machine2 to access machine1 /tmp by accessing /mnt/test. Any idea why?
sudo implies root privileges, so /mnt/test probably then is only accessible with root privileges. You could try changing the permissions on /mnt/test with chmod/chown (not sure how sshfs works).
Use the option -o allow_other
See other options with
sshfs --help
Next Page...
original here.