Bonjour on iPhone? [SOLVED]

Discussion in 'Jailbreaks and iOS Hacks' started by tctony, Jan 21, 2012.

  1. tctony, Jan 21, 2012
    Last edited: Jan 21, 2012

    tctony macrumors 6502a

    tctony

    Joined:
    Jun 15, 2009
    #1
    I used to be able to use Bonjour with Cyberduck to go through my iPhone's file system without having to type in my IP address every time. Then one day it stopped working. Is there anyway to reenable this?

    Solution:


    Make sure you change your passwords (both root and mobile) if you do this
     
  2. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #2
    You have to add the Bonjour socket information into the SSH launchdaemon plist. Note: It was removed because it is a security risk.
     
  3. tctony thread starter macrumors 6502a

    tctony

    Joined:
    Jun 15, 2009
    #3
    Do you happen to have a link or instructions on how to do so?

    How is it a security risk? Didn't it still require username/password?
     
  4. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #4
    It's a security risk because most people don't change their root/mobile passwords. With the SSH/SFTP service being broadcasted to the local network, a person could see that your iPhone is jailbroken and attempt the default password. This is also how the worm spread across jailbroken iPhones in 2008.
     
  5. tctony thread starter macrumors 6502a

    tctony

    Joined:
    Jun 15, 2009
    #5
    Ah well, thats not a risk for me then, since I've changed mine.

    Do you know how I can add the socket information for it by any chance?
     
  6. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #6
    In the /Library/LaunchDaemons/com.openssh.sshd.plist file, make sure it looks like this in the Socket dictionary, you may need to add the text in purple:

    Code:
    <key>Sockets</key>
    	<dict>
    		<key>Listeners</key>
    		<dict>
    			[COLOR="Purple"]<key>Bonjour</key>
    			<array>
    				<string>ssh</string>
    				<string>sftp-ssh</string>
    			</array>[/COLOR]
    			<key>SockServiceName</key>
    			<string>ssh</string>
    		</dict>
    	</dict>
     
  7. tctony thread starter macrumors 6502a

    tctony

    Joined:
    Jun 15, 2009

Share This Page