Quantcast Wirelessly Mount an iPhone to Your Desktop - iPhone Alley Forums

Wirelessly Mount an iPhone to Your Desktop
Reply
Michael Johnston
This is my fricken site, durrrr
 
Michael Johnston's Avatar
 
Join Date: Apr 2007
Location: Rockford, IL
Posts: 2,694
Thanks: 11
Thanked 45 Times in 40 Posts
Send a message via AIM to Michael Johnston
Wirelessly Mount an iPhone to Your Desktop -    #1


This tip is only intended for those who jailbroke their iPhone. This does not apply to unhacked iPhones. Wouldn't it be convenient if your iPhone's filesystem could be mounted directly to your desktop? SSHFS, a MacFUSE extension, uses SSH to mount your iPhone wirelessly to your Mac. Once mounted, the iPhone's entire filesystem is available just like any other drive on your Mac. Here's how to do it (Mac only).

To perform this little trick, you need to have SSH installed on your iPhone. You can grab OpenSSH from AppTapp (aka Installer.app) on your iPhone. You will need to make sure that logging in via the Terminal actually works before using MacFUSE. The most common problem may be that your key has changed. Terminal will warn you of this when you attempt to log in. If that seems to be your problem, remove the "known_hosts" file from your /username/.ssh directory.

How to:

  • Grab the latest version of MacFUSE from Google Code.
  • Get the SSHFS filesystem extension from Google Code as well.
  • Install MacFUSE and reboot your Mac
  • Move sshfs.app to a good spot, perhaps the Applications folder. It doesn't matter.
  • Launch sshfs.app and give it your iPhone's IP address and log in using root. You will need to specify that the remote directory is / . If you don't, things won't work out.
  • Enter the iPhone's password. The default for versions 1.0.2 and earlier is dottie. Default for version 1.1.1 is alpine


That's it, you're done! The same task can be accomplished using SFTP, but it feels more convenient to have it mounted to the desktop, wouldn't you say?
__________________

About my iPhone:
iPhone & Color: White 32GB iPhone 3GS
iPhone Version: Whatever the latest is because I'm crazy like that.
Computer & OS: 15" Unibody MacBook Pro + OS X Leopard 10.5



AIM: iPhoneAlley
twitter: MichaelJohnston
Michael Johnston is online now   Reply With Quote
*Josh
Guest
 
Posts: n/a
Help -    #2
I have followed all the instructions, here but I must be doing something wrong. I find my iPhone's IP address by going to Settings > WiFi on my iPhone. I plug in the IP address, type in "root" and "/", and then connect. When it asks for authentication, I type in "dottie" (I'm using 1.0.2), and it doesn't work. I tried changing the root password using MobileTerminal, then tried putting in that password, but it still didn't work. What am I doing wrong?
  Reply With Quote
Spoon
Rocks the Board
 
Spoon's Avatar
 
Join Date: Aug 2007
Posts: 450
Thanks: 2
Thanked 16 Times in 16 Posts
  #3
Quote:
Originally Posted by *Josh View Post
I have followed all the instructions, here but I must be doing something wrong. I find my iPhone's IP address by going to Settings > WiFi on my iPhone. I plug in the IP address, type in "root" and "/", and then connect. When it asks for authentication, I type in "dottie" (I'm using 1.0.2), and it doesn't work. I tried changing the root password using MobileTerminal, then tried putting in that password, but it still didn't work. What am I doing wrong?
The instructions state that you need to make sure you can log in via the Terminal first. If you've nevever SSH'd into your iPhone, you need to do that first.
__________________

About my iPhone:
iPhone & Color: 16GB Original iPhone
iPhone Version: 2.0.2
Computer & OS: MacBook + OS X 10.5

Don't make me a target
Spoon is offline   Reply With Quote
*dan
Guest
 
Posts: n/a
  #4
just wondering .. since it's able to be viewed as any other drive .. does that mean that any data recovery software that read hfs+ drives would be able to perform data recovery on the iphone volume??

dunno if this has been tried or not but i don't see why this wouldn't be possible .. tons of my lost pictures and notes would be very thankful
  Reply With Quote
*Josh
Guest
 
Posts: n/a
Thanks -    #5
Thanks for pointing that out. My iPhone has now been successfully mounted on my desktop. Somebody might want to post a step-by-step guide of how to do this with more detail...
  Reply With Quote
sfgray
Guest
 
Posts: n/a
Works on Touch as well -    #6
Just for anybody's information, this works great on the iPod Touch as well.

I did have one problem that might crop up for others. After installing, I ran sshfs through the regular prompts (including password), but then had nothing happen. It turned out that although I had already been sshing from my Macbook to the Touch, I hadn't actually installed OpenSSH via the installer. (Rather, I was running whatever SSH implementation was installed by iJailbreak.)

After installing OpenSSH, there was another wrinkle -- the previous SSH authentication didn't want to play with the new OpenSSH setup (I can't remember the error message I finally got when sshing through Terminal, but the gist of it was that the SSH client had changed). That required trashing the 'known_hosts' file in Users/[yourname]/.ssh. After that, everything's working great.
  Reply With Quote
BillyMayes
Rocks the Board
 
BillyMayes's Avatar
 
Join Date: Apr 2007
Location: TV
Posts: 294
Thanks: 0
Thanked 3 Times in 3 Posts
  #7
Quote:
Originally Posted by *dan View Post
just wondering .. since it's able to be viewed as any other drive .. does that mean that any data recovery software that read hfs+ drives would be able to perform data recovery on the iphone volume??

dunno if this has been tried or not but i don't see why this wouldn't be possible .. tons of my lost pictures and notes would be very thankful
Well, I think you could back up but recovery would be another thing entirely, as in I don't believe that would work
__________________

About my iPhone:
iPhone & Color: Original iPhone
iPhone Version: 1.1.4 (Codename: OxiClean)
Hacks: OxiClean'd
Computer & OS: Too busy selling OxiClean

I invented friggin OxiClean, have you heard of it?
BillyMayes is offline   Reply With Quote
bushman95
Forum Lurker
 
Join Date: Oct 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
  #8
I don't get how to login in to terminal?
bushman95 is offline   Reply With Quote
Mubs
Beyond l33t
 
Mubs's Avatar
 
Join Date: Jun 2007
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
  #9
You SSH in using the terminal by issuing the command:

ssh -l root the.iphone.ip.address
Mubs is offline   Reply With Quote
TEBS
Guest
 
Posts: n/a
Exploring -    #10
how do you explore in without mounting the iphone as a drive? (I've already SSHed in)
  Reply With Quote
Chad Vader
iPhone Fanatic
 
Chad Vader's Avatar
 
Join Date: Sep 2007
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
  #11
Quote:
Originally Posted by TEBS View Post
how do you explore in without mounting the iphone as a drive? (I've already SSHed in)
It's sort of difficult, that's why this method is good. You could also try SFTP with an FTP application.
__________________

Day shift manager.
Chad Vader is offline   Reply With Quote
*kid
Guest
 
Posts: n/a
  #12
hey,

I dont get/ understan the sshing the terminal process this is all foreign lnguage 2 me... is the terminal the sshs login connection? or is it supposed 2 be in my iphone some where? P88j4yls. help the rest i can figure out thank you.
  Reply With Quote
BillyMayes
Rocks the Board
 
BillyMayes's Avatar
 
Join Date: Apr 2007
Location: TV
Posts: 294
Thanks: 0
Thanked 3 Times in 3 Posts
  #13
Quote:
Originally Posted by *kid View Post
hey,

I dont get/ understan the sshing the terminal process this is all foreign lnguage 2 me... is the terminal the sshs login connection? or is it supposed 2 be in my iphone some where? P88j4yls. help the rest i can figure out thank you.
To log in using ssh you need the bsd subsystem and OpenSSH installed on your iPhone. Those can be found in installer.app. Once you have that, use terminal to log in.

Log in by issuing the command ssh -l root your.iphones.ip.address and hit return. It might take a while the first time. For the password, enter dottie for everything earlier than 1.1.1 and alpine for 1.1.1

After you've done that you can ssh in.
__________________

About my iPhone:
iPhone & Color: Original iPhone
iPhone Version: 1.1.4 (Codename: OxiClean)
Hacks: OxiClean'd
Computer & OS: Too busy selling OxiClean

I invented friggin OxiClean, have you heard of it?
BillyMayes is offline   Reply With Quote
*kid
Guest
 
Posts: n/a
  #14
Hey man,

thanks alot I know you didnt have 2 do that and I realy appreciate it!
Have a great day.
  Reply With Quote
ardonut
Guest
 
Posts: n/a
  #15
Quote:
Originally Posted by Mubs View Post
You SSH in using the terminal by issuing the command:

ssh -l root the.iphone.ip.address
mubs i'm having trouble sshing in as well. at what stage in the process do i attempt to ssh in using the terminal?
i've jailbreaked, and apparently installed ssh using iNdependence. my understanding is that i can ssh in with the terminal now, but it is not working for me. any ideas?
thanks
-h
  Reply With Quote
Chad Vader
iPhone Fanatic
 
Chad Vader's Avatar
 
Join Date: Sep 2007
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
  #16
Quote:
Originally Posted by ardonut View Post
mubs i'm having trouble sshing in as well. at what stage in the process do i attempt to ssh in using the terminal?
i've jailbreaked, and apparently installed ssh using iNdependence. my understanding is that i can ssh in with the terminal now, but it is not working for me. any ideas?
thanks
-h
You need to have BSD subsystem and OpenSSH installed first. You can get both from Installer.app
__________________

Day shift manager.
Chad Vader is offline   Reply With Quote
abath
Guest
 
Posts: n/a
ni wi-fi and no ip address -    #17
i dont have wi-fi connection and my IP address is lost during reset (Erase all content and setting); then i suppose I cant use this method?
  Reply With Quote
Eric Pena
Guest
 
Posts: n/a
  #18
Works on Tiger but not anymore in Leopard.
  Reply With Quote
*johnd
Guest
 
Posts: n/a
More information pls -    #19
Quote:
Originally Posted by Spoon View Post
The instructions state that you need to make sure you can log in via the Terminal first. If you've nevever SSH'd into your iPhone, you need to do that first.
I installed SSH followed the directions.. Terminal seems to try to log in but hangs... waiting for a response asking for the password.. SSHFS does EXACTLY the same thing.

In term (on the iPhone) I CAN log into the phone using the root/alpine (for 1.1.1) and it DOES get me there.

Tried removing the 'known_hosts" file but man.. I cant find it... a n y w h e r e.. cant even find /username/.ssh directory just exactly where is that located...?
  Reply With Quote
zlex
Forum Lurker
 
Join Date: Nov 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
  #20
log in as root, unbelievable!
zlex is offline   Reply With Quote
 
Reply


Thread Tools
Display Modes

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 On
HTML code is On
Forum Jump


All times are GMT -5. The time now is 12:48 AM.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.