SSH

Discussion in 'iOS Jailbreak & Cydia' started by spoonforknife, Mar 23, 2009.

  1. spoonforknife

    spoonforknife Retired Moderator

    Joined:
    Nov 15, 2007
    Messages:
    6,896
    Likes Received:
    317
    Part I: What is SSH?

    What is it?
    Accessing the filesystem of your iPod from your computer, so you can see the files over the internet. It stands for Secure Shell.

    Why you need it?
    Not everything is available in Cydia. Many theme creators release their themes on a forum rather than submitting them Cydia. Some beta testing can involve SSH, and sometimes if there's a problem with your iPod, SSH can work for you. If you need to put some files on your iPod, then you need SSH.

    Part II: Getting it on your iPod

    STEP 1: Jailbreak your Device

    http://www.spiritjb.com (works for any iPod touch or iPhone running FW 3.1.2 or 3.1.3)

    STEP 2: Find your IP Address
    • Tap on Settings (the cogs).
    • Connect to a network.
    • Tap the blue arrow next to the network you're connected to.
    • There should be a field called 'IP Address.'
    • Write down the number in the field. It should look something like '192.168.1.100.'

    STEP 3: Installing OpenSSH
    • Open Cydia. If it has to reorganize and there are upgrades, upgrade and reorganize first rather than proceeding to the next step.
    • Tap 'Featured Packages,' scroll down, and tap 'OpenSSH.'
    • Install it by tapping the button in the top right corner that says Install.
    • When it is complete, power off your iPod by holding the power button (button at the top), and slide to power off.

    Part III: Setting up your Computer

    STEP 1: Download a client

    Download one of the clients below. If you have a Mac, choose one of the Mac clients. If you have a PC, choose a PC client. If you have a wireless connection, please choose a wireless client. If not, choose a wired client.

    Most of these have simple installations. Those that do not, there should be instructions on the page that I have given you. Set up your client and come back here.

    Mac

    PC

    Part IV: Connecting to your iPod

    STEP 1: Get your iPod ready
    • Turn your device on.
    • Tap Settings
    • Tap General
    • Then tap Auto-Lock
    • Change it to never

    STEP 2: Connecting
    • Open your SSH client
    • Open a new connection
    • Change it to a SFTP client
    • Change your server address to the IP Address you wrote down earlier
    • Make sure your port is 22.
    • Change your username to 'root'
    • Change your password to 'alpine'
    • Click connect
    • Wait for a bit and when it gives you the choices of 'Allow,' 'Deny,' and 'Always Allow.' Select 'Always Allow.'
    • You are then connected.
      • If you are connecting via the command line...
      • Type this in to Terminal: 'ssh root@<IP Address Here>
      • Your password is alpine.

    Part V: Handy Tips & Tricks

    Changing your password from alpine
    • Login to your iPod via the command line (or use the command line function in your GUI client) and type in:
      Code:
      su root
      alpine
      passwd
    • Then type in your new password. If you want to change your password for mobile, type this in, instead of just passwd:
      Code:
      passwd mobile
    • You’re good to go! Login with your new password to test it.

    Good locations to bookmark
    • /Applications - Applications
    • /Library/Themes - Winterboard Themes
    • /System/Library/CoreServices/SpringBoard.app - SpringBoard.app
    • /var/mobile/Applications - App Store Applications
    • /var/mobile/Media/DCIM/100Apple - Saved Photos
    • /var/mobile/Media/DCIM/999Apple - Screenshots

    Handy Commands
    • Find App Store applications

      Code:
      cd /var/mobile/Applications/
      find ./ -name AppNameHere
    • Set permissions

      Code:
      chmod -Rf PermissionNumberHere /DirectoryHere/SubDirectoryHere
    • Remove Directory

      Code:
      rm -rf /DirectoryHere/SubDirectoryHere
    • Respring

      Code:
      killall SpringBoard
    • Reboot

      Code:
      reboot
  2. BigDaveyJ

    BigDaveyJ New Member

    Joined:
    Nov 23, 2007
    Messages:
    2,751
    Likes Received:
    23
    Device:
    iPod touch
    Your's is better than Stephan.4's. But they are basically the same thing.
  3. iCrap

    iCrap Active Member

    Joined:
    Jan 4, 2009
    Messages:
    2,639
    Likes Received:
    4
    Device:
    iPhone 4 (Black)
    Uhhh.. oh joy another one?
  4. dudeitsriley

    dudeitsriley Banned

    Joined:
    Dec 27, 2008
    Messages:
    1,222
    Likes Received:
    1
    THANK YOU! You don't know how many threads I've seen about SSH.

    Please Register or Log in to view images

  5. GrooveMachine

    GrooveMachine Active Member

    Joined:
    Dec 27, 2007
    Messages:
    1,741
    Likes Received:
    11
    Device:
    iPod touch
    Nice guide. You might add that if you're using an Airport (or any Apple router), your IP will be something like 10.0.1.x.
  6. spoonforknife

    spoonforknife Retired Moderator

    Joined:
    Nov 15, 2007
    Messages:
    6,896
    Likes Received:
    317
    This is replacing my previous thread. Except this one has directions.
  7. mmitt

    mmitt New Member

    Joined:
    Sep 12, 2008
    Messages:
    1,214
    Likes Received:
    0
    Device:
    iPod touch
    Nice... But I could have sworn that there is a couple others.
  8. Gr33n3gg

    Gr33n3gg New Member

    Joined:
    Feb 17, 2009
    Messages:
    13
    Likes Received:
    0
    Did spoonforknife not mention FileZilla as a FTP/SFTP client?
  9. loop4444

    loop4444 Member

    Joined:
    Feb 7, 2009
    Messages:
    416
    Likes Received:
    1
    Device:
    iPhone 4 (Black)
    Nice info dude!
  10. Sirgio12

    Sirgio12 New Member

    Joined:
    Mar 16, 2009
    Messages:
    26
    Likes Received:
    0
    hey this is problably a noob question but its not working for me at least I don't think, beacause when I SSH i only have two folder Library and Media, and niether one has folders called DCIM 999 or applications or any of your 'locations to bookmark'..Im using CuteFTP btw....help would be great

    Thanks!

Share This Page