Noob guide to SSH on iPhone ... transfer files using wifi

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • drawflex
    DK Veteran
    • Dec 2008
    • 440

    #1

    Noob guide to SSH on iPhone ... transfer files using wifi

    Gonna keep this as simple as poss, but if you want the full-fat info on what SSH is all about... Here's the WIKI link to SSH, SSH is a secure network connection which can be used on your jailbroken iPhone to transfer stuff over wifi. I've included steps to change the root password, all iphones ship with 'alpine' as the default password, making them easily hacked, but this fats-out the guide a bit. (there has been reports of malware targeting iphones with default SSH passwords in the news) ARTICLE HERE

    On your phone...
    1 Install OpenSSH and MobileTerminal from cydia (Should be in the default repos)
    2 Restart phone...
    3 Launch 'Terminal' from your phone, you'll get a screen that looks like this ;

    Type in su (return)
    Enter password : alpine (return)
    Type in passwd (return)
    Now choose a new password (at least 5 chars) and verify it.
    We're done with terminal now, exit... you can even un-install it if you like.

    4 If you have SBsetting installed, you'll get a toggle for SSH in the SBS menu, if so, make sure it's on..otherwise, no worries, openSSH hides out-the-way.
    5 Turn Auto-lock off for now, SSH transfers will fail if phone goes to sleep.
    6 Connect your phone to your wifi network, and note the phone's wifi IP (settings/wifi/ expand network tab). Must be on same network (router) as computer you're gonna use to transfer to/from. (computer can be wired/wireless, doesn't matter).

    On PC....
    1 Get WinSCP FROM HERE, and install it... default options are fine.
    2 Run WinSCP and you'll get a login screen...
    HOST NAME : use your phones wifi IP ( 192.168.0.102 for me)
    PORT NO. : leave at 22
    USER NAME : root
    PASSWORD : the password you chose in terminal
    You can then save these login details to save time in future... click login.

    Ta-da.. in the right panel is your phone's directory structure.
    Last edited by drawflex; 27 May, 2011, 23:23.
    'He's not the messiah, he's a very naughty boy'.
  • fijiman
    DK Veteran
    • Oct 2010
    • 976

    #2
    When you get to grips with using SSH, you will be looking for the location for certain files.... found this on a site I frequent post by GodXZY


    Useful SSH Locations
    Some useful SSH locations...

    Saved Photos - /var/mobile/Media/DCIM/100Apple

    AppStore Apps - /var/mobile/Applications

    AppStore Apps Saved Data - /var/mobile/Applications/findtheapp/Documents

    Contacts, Calendars, Caches, Mail, etc - /var/mobile/Library

    Cydia Apps and Default Apps - /Applications

    Springboard Stuff - /System/Library/CoreServices/Springboard.app/

    Cydia Sources - /var/lib/apt/lists AND /etc/apt/sources.list.d

    Mobile Substrates - /Library/MobileSubstrate/DynamicLibraries

    Wallpapers - /Library/Wallpapers

    Ringtones - /Library/Ringtones

    Themes - /Library/Themes

    Fonts - /System/Library/Fonts

    SBSetting Themes - /var/mobile/Library/SBSettings/Themes

    Launch Daemons - /System/Library/LaunchDaemons

    Installous Downloads - /var/mobile/Documents/Installous/Downloads

    YourTube Downloads - /var/mobile/Library/Media/Yourtube

    Comment

    • drawflex
      DK Veteran
      • Dec 2008
      • 440

      #3
      it's handy to add the installous, and any other frequently used ones as bookmarks in WinSCP.. saved me loads of time
      'He's not the messiah, he's a very naughty boy'.

      Comment

      • fijiman
        DK Veteran
        • Oct 2010
        • 976

        #4
        Install .deb in Cydia - /private/var/root/media/Cydia/AutoInstall

        If you have not got Cydia/AutoInstall just create them, be careful , it's case sensitive and spelling

        Comment

        • cablefreejunkie
          DK Veteran
          • Jul 2008
          • 1717

          #5
          Still cant get mine to connect !!
          The control of information is the consolidation of power

          ?I care not what puppet is placed on the throne of England to rule the Empire. The man who controls Britain?s money supply controls the British Empire and I control the British money supply.? ? Nathan Rothschild



          IF I HELPED HIT THE THANKS BUTTON

          Comment

          • drawflex
            DK Veteran
            • Dec 2008
            • 440

            #6
            wossit say ? phone isn't asleep is it ?
            got wifi ip correct ?
            Got SBSettings ? SSH switched ON ?
            'He's not the messiah, he's a very naughty boy'.

            Comment

            • cablefreejunkie
              DK Veteran
              • Jul 2008
              • 1717

              #7
              Yep to all
              Followed the guide but says cant connect
              I gave up on it done my head in
              The control of information is the consolidation of power

              ?I care not what puppet is placed on the throne of England to rule the Empire. The man who controls Britain?s money supply controls the British Empire and I control the British money supply.? ? Nathan Rothschild



              IF I HELPED HIT THE THANKS BUTTON

              Comment

              • drawflex
                DK Veteran
                • Dec 2008
                • 440

                #8
                make sure 'allow SCP fallback is enabled'

                when you can be arsed, post exactly what the error says.
                'He's not the messiah, he's a very naughty boy'.

                Comment

                • cablefreejunkie
                  DK Veteran
                  • Jul 2008
                  • 1717

                  #9
                  terminal will not open keeps shutting immediately
                  any clues why ?
                  update: managed to get it connected today
                  nice
                  ?
                  just to add that because terminal shuts the second i open it how do i change my password etc ? can this be dont through winscp ?
                  Last edited by cablefreejunkie; 22 June, 2011, 13:08.
                  The control of information is the consolidation of power

                  ?I care not what puppet is placed on the throne of England to rule the Empire. The man who controls Britain?s money supply controls the British Empire and I control the British money supply.? ? Nathan Rothschild



                  IF I HELPED HIT THE THANKS BUTTON

                  Comment

                  Working...