LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   laptop to desktop using sshfs (https://www.linuxquestions.org/questions/linux-newbie-8/laptop-to-desktop-using-sshfs-4175462596/)

lavere 05-19-2013 01:39 PM

laptop to desktop using sshfs
 
I'm trying to play mp3 files that live on my desktop pc with the mp3 player on my laptop. I've done a lot of reading and tried a lot of things, but so far have not had success in this endeavor. I'd appreciate some guidance.

Here's my setup:

Desktop pc:
This pc is running Ubuntu 13.04. The mp3 files I want to access are on a separate partition of a hard drive that lives inside the Desktop pc with an ATA connection. This partition is named Music. There are many subfolders containing mp3's off the root directory of this partition. This pc is connected to a router via a wired NIC. The internet is also connected to this router through a wired NIC.

Laptop pc:
This pc is running Ubuntu 12.04LTS. I am using the wireless NIC in the Laptop to connect to the Desktop through the router. I can ping the Desktop nic OK. I want to be able to play the files on the Desktop Music partition with the mp3 player living on the laptop.

My username is the same on both machines and both have admin priviledges.

After a lot of reading on the subject, I did the following:
Installed sshfs on the Laptop.
Set the Music partition on the Desktop to be shared.

I ran the command:
sshfs 192.168.2.2:Music /home/tracy/Desktop/Desktop_Music
The response was (after quite a wait)
read: Connection reset by peer

I've tried using Username@hostname instead of the ip address. Same results only quicker.
I've tried using the full address to the Desktop share /media/tracy/Music. No difference.
I've tried enough permutations of all of these that I'm thinking I must have something fundamentally wrong.

Can anyone see where I'm screwing up?

Thanks,
Tracy

divyashree 05-19-2013 02:02 PM

Try
Code:

sudo sshfs -o idmap=user root@192.168.2.2:/media/tracy/Music /home/tracy/Desktop/Desktop_Music
Or try to mount using this command as superuser:
Code:

sudo sshfs root@192.168.2.2:/media/tracy/Music /home/tracy/Desktop/Desktop_Music

The problem may be the local user mightnot have permission to access the remote dir.
By default mounting a file system is restricted for a normal user.

lavere 05-19-2013 02:37 PM

Quote:

Originally Posted by divyashree (Post 4954399)
Try
Code:

sudo sshfs -o idmap=user root@192.168.2.2:/media/tracy/Music /home/tracy/Desktop/Desktop_Music
Or try to mount using this command as superuser:
Code:

sudo sshfs root@192.168.2.2:/media/tracy/Music /home/tracy/Desktop/Desktop_Music

The problem may be the local user mightnot have permission to access the remote dir.
By default mounting a file system is restricted for a normal user.

I copied and pasted both of these into a terminal. There was no change in the outcome.

lavere 05-24-2013 06:08 PM

I found my problem: my firewall was blocking it! I made an exception in the firewall to port 22 and now all is well. Maybe this will be of use to others.


All times are GMT -5. The time now is 08:57 PM.