LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2013, 02:39 PM   #1
lavere
LQ Newbie
 
Registered: Jun 2011
Posts: 23

Rep: Reputation: Disabled
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
 
Old 05-19-2013, 03:02 PM   #2
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,362

Rep: Reputation: 135Reputation: 135
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.

Last edited by divyashree; 05-19-2013 at 03:07 PM.
 
Old 05-19-2013, 03:37 PM   #3
lavere
LQ Newbie
 
Registered: Jun 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by divyashree View Post
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.
 
Old 05-24-2013, 07:08 PM   #4
lavere
LQ Newbie
 
Registered: Jun 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
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.
 
  


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
Laptop won't shut down if SSHFS is mounted NotAComputerGuy Linux - Software 4 07-06-2012 06:18 AM
SAMBA connect laptop -> desktop works, desktop -> laptop won't work rylan76 Linux - Networking 7 10-14-2011 01:13 PM
Battery not recognized on my laptop (and it recognizes my laptop as a desktop) AZorin Linux - Hardware 5 04-24-2011 05:06 PM


All times are GMT -5. The time now is 06:59 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration