Welcome to iPadForums.net Guest - Click Here to Register

HOW TO - Use Secure Shell (SSH) with the iPad

This is a discussion on HOW TO - Use Secure Shell (SSH) with the iPad within the Jailbreaking & Hacking Tutorials & How-To Guides forums, part of the iPad Hacking category; What is SSH? Secure Shell, more commonly referred to as SSH, is a network protocol which allows data to be exchanged between two devices via ...

iPadForums.net is the original Apple iPad Forum! Registered Users do not see these ads. Please Register - It's Free!
+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 23
Like Tree1Likes

Thread: HOW TO - Use Secure Shell (SSH) with the iPad

  1. #1
    Super Moderator
    Member #
    14571
    Liked
    632 times
    Join Date
    Sep 2010
    Location
    Troon, Scotland
    Posts
    7,104
    What is SSH?
    Secure Shell, more commonly referred to as SSH, is a network protocol which allows data to be exchanged between two devices via a secure channel using shell accounts. SSH should not be confused with SHSH Blobs which are a completely separate subject.
    Wikipedia has a detailed article on SSH if you are interested in the history and detail here - Secure Shell - Wikipedia, the free encyclopedia

    Why would I use SSH?
    On a jailbroken device, SSH is a great tool for transferring files between your desktop computer (or any other client) and your iPad WITHOUT using iTunes. It provides you complete freedom to copy, move, or delete files however you like as well as access the shell and run commands against iOS just as you might do on other linux / unix like systems.

    One of the most common uses of SSH on a jailbroken device is manually copying theme components to and from Winterboard, as well as applying theme component without using Winterboard at all (some folks just don't like it and consider it a resource hog). You can easily move a theme from your iPad onto your desktop computer, change the files somehow, then move them back onto the iPad. Coolness!

    How do I enable SSH?
    In Cydia, you should install the package OpenSSH. If you are using SBSettings you will automatically get a SSH toggle added to the interface to allow you to enable and disable the service whenever you want. That's it, you are good to go!

    Is SSH really secure?
    Yes it is, to establish a SSH connection with a device you need to know one or more shell account username and password combinations for the operating system. By default, your iPad has several shell accounts, but the two most important ones are root and mobile. Like most unix / linux type systems, the root user has acces to everything on the file system. The mobile user is essentially "you" and has access to all your personal files and documents (which root also has access to). By default the passwords for both these users is alpine and so it is important to change this default password for BOTH these users to something of your choosing. Otherwise someone on the same network connection as you could connect via SSH using root / alpine and gain access to all your files and data. I have provided a guide below on how to change the default passwords...

    I've installed OpenSSH on my iPad, now what?
    Once you have SSH enabled you will be able to open a connection from your desktop computer or another device with an SSH client installed. There are literally hundreds of different clients to choose from depending on what you want to do...
    The devices you wish to connect must be on the same wifi network, and it should be as simple as providing the IP address and root / alpine credentials to the client software and answering any prompts which appear. Normally, for the first connection between devices, a "fingerprint" file is saved as a token of trust for future connections. You'll get the idea once you give it a try.

    On Windows.
    PuTTY is an excellent free SSH client to access the command shell on the iPad.
    WinSCP is a free SFTP client which allows you to securely transfer files between the desktop and the iPad filesystem in an explorer like interface.
    Wise-FTP is a paid file transfer client..., and there are many many more.

    I recommend you try PuTTY and WinSCP first as freebies before shelling out (pun intended) on a commercial package. They might just be perfect for your needs!

    On OSX.
    CyberDuck and Terminal are both excellent choices, and I am sure there are a lot more!

    How do I change the default passwords?
    Using your chosen shell client, such as PuTTY or iSSH, connect to the iPad and login with the root / alpine default credentials.
    enter the passwd command in the shell. You will be prompted to provide your new password and confirm it.
    You should also change the password for mobile / alpine. You can do this during the same session as root by using the command passwd mobile and provide the new password details.
    Don't forget, you will now need to use your new password whenever you make a SSH connection to your device. Try it now! alpine should no longer grant you access, but your new password should.

    Don't forget the golden rules!
    Finally, before you go off messing with your iPad files to your hearts content. Remember the golder rules:
    1. Backup iPad - Always have a recent backup of your iPad in iTunes so that if you mess something up by accident, you will be able to restore to a recent backup.
    2. Backup Copy - Before you mess with a file, take a quick copy of it (it's easy thanks to SSH). There are many files on your iPad where if you mess with them and make a mistake, a restore will be your only option unless you can restore a copy...

    Happy SSHing fellow jailbreakers!
    Last edited by f4780y; 01-23-2012 at 03:51 AM.
    KiNgDoMRiDeR likes this.
    15" MacBookPro with Retina Display 16GB 3.4GHz i7 256GB | iPad4 WiFi 32GB 6.1.2 (evasi0n) | iPad3 4G 64GB 6.1.2 (evasi0n) | iPad2 3G 64GB 5.1.1 (redsn0w) | iPad1 3G 64GB 4.3.3 (jbme) |
    iPhone5 32GB 6.1.2 (evasi0n) | iPhone4S 64GB 5.1.1 (absinthe) | iPhone4 32GB 7.0b2 (stock) | iPhone3G 16GB 3.1.3 (jbme) | iPod Classic 6G 160GB (stock) | AppleTV 2G 5.0.2 (seas0npass)


    Please review the hacking section rules and our main rules before posting!

  2. Ads


  3. #2
    iPad Fan!
    Member #
    37431
    Join Date
    Mar 2011
    Location
    so cal
    Posts
    25
    I installed OpenSSH and SBSettings but no where do i see a toggle for OpenSSH. Did i do something wrong?
    Last edited by ntrddragn; 05-20-2011 at 03:05 AM.

  4. #3
    Super Moderator
    Member #
    14571
    Liked
    632 times
    Join Date
    Sep 2010
    Location
    Troon, Scotland
    Posts
    7,104
    Quote Originally Posted by ntrddragn
    I installed OpenSSH and SBSettings but no where do i see a toggle for OpenSSH. Did i do something wrong?
    Make sure you enable it in "toggles" in SBSettings from the "more" menu, and respring / reboot the iPad.
    15" MacBookPro with Retina Display 16GB 3.4GHz i7 256GB | iPad4 WiFi 32GB 6.1.2 (evasi0n) | iPad3 4G 64GB 6.1.2 (evasi0n) | iPad2 3G 64GB 5.1.1 (redsn0w) | iPad1 3G 64GB 4.3.3 (jbme) |
    iPhone5 32GB 6.1.2 (evasi0n) | iPhone4S 64GB 5.1.1 (absinthe) | iPhone4 32GB 7.0b2 (stock) | iPhone3G 16GB 3.1.3 (jbme) | iPod Classic 6G 160GB (stock) | AppleTV 2G 5.0.2 (seas0npass)


    Please review the hacking section rules and our main rules before posting!

  5. #4
    iPad Fan!
    Member #
    37431
    Join Date
    Mar 2011
    Location
    so cal
    Posts
    25
    thanks.

  6. #5
    iPF Novice
    Member #
    42396
    Join Date
    Mar 2011
    Posts
    46
    Mobile terminal does not work on the ipads. Get issh from the app store and connect to your own device on localhost 127.0.0.1

    Sent from my iPad using iPF

  7. #6
    iPad Fan
    Member #
    78549
    Liked
    9 times
    Join Date
    Jul 2011
    Location
    Oconto, WI, USA
    Posts
    257
    I have WinSCP set up on my Windoze laptop and can access the iFile on my iPad2 but how then do I access any files on my Windoze laptop from my iPad? I had understood it to mean I could access one machine from another room or across the house. I have OpenSSH installed and enabled in SB settings but I guess I don't understand what is the iPad counterpart to WinSCP.

    DOH!
    iPad 2 32gb wifi 6.1.2 jailbroken with Evasi0n
    iPhone 4s 16gb 6.1.2 jailbroken with Evasi0n
    iPod Touch 2nd gen 32gb wifi 4.2.1 jailbroken with Greenpois0n

    "To acquire the habit of reading is to construct for yourself a refuge
    from almost all the miseries of life." W. Somerset Maugham

  8. #7
    Super Moderator
    Member #
    13576
    Liked
    1445 times
    Join Date
    Aug 2010
    Location
    Western NY state (USA)
    Posts
    11,053
    You are looking for a remote desktop application, such as Splashtop or Jump. They are the ones where you can control your Windows machine with the iPad.

    Here's a good thread to get you started on finding one that'll suit your needs: Best Remote Desktop App

    Good luck.

    Marilyn

    P.S. Now that you have OpenSSH installed, may I suggest you change your default root and mobile passwords on the iPad - as a precautionary measure.
    Space Gray 32GB WiFi-only iPad Air & Black 32GB iPhone 5 (both jailbroken on iOS 7.0.4 w/evasi0n7)
    * * * PLEASE READ * * * Forum Rules * * * Hacking Section Rules * * * PLEASE READ * * *

  9. #8
    iPad Fan
    Member #
    78549
    Liked
    9 times
    Join Date
    Jul 2011
    Location
    Oconto, WI, USA
    Posts
    257
    Quote Originally Posted by Mickey330 View Post
    You are looking for a remote desktop application, such as Splashtop or Jump. They are the ones where you can control your Windows machine with the iPad.

    Here's a good thread to get you started on finding one that'll suit your needs: Best Remote Desktop App

    Good luck.

    Marilyn

    P.S. Now that you have OpenSSH installed, may I suggest you change your default root and mobile passwords on the iPad - as a precautionary measure.
    Thank you for the thread suggestion. I'll check it out. I did change the password.
    Thanks again.
    iPad 2 32gb wifi 6.1.2 jailbroken with Evasi0n
    iPhone 4s 16gb 6.1.2 jailbroken with Evasi0n
    iPod Touch 2nd gen 32gb wifi 4.2.1 jailbroken with Greenpois0n

    "To acquire the habit of reading is to construct for yourself a refuge
    from almost all the miseries of life." W. Somerset Maugham

  10. #9
    iPad Fan
    Member #
    78549
    Liked
    9 times
    Join Date
    Jul 2011
    Location
    Oconto, WI, USA
    Posts
    257
    Thanks again for all your help last night. I got splahtop set up on my iPad and the Winbox.
    Transfered my first files this morning. Put 4 music albums in /var/root and a few pdf's but although I can then place the pdf files in "books", on the shortcut sidebar, and they show up nicely in iBook, when I move my music to the "Media Library" in the sidebar they don't show up when I open "My iPod" to use the player functionality. Not excatly sure what is happening there, I can still play them from the iFile sidebar but would definitely feel better if I could access them from the player.

    Thanks again to all who helped me.

    Dan
    iPad 2 32gb wifi 6.1.2 jailbroken with Evasi0n
    iPhone 4s 16gb 6.1.2 jailbroken with Evasi0n
    iPod Touch 2nd gen 32gb wifi 4.2.1 jailbroken with Greenpois0n

    "To acquire the habit of reading is to construct for yourself a refuge
    from almost all the miseries of life." W. Somerset Maugham

  11. #10
    Super Moderator
    Member #
    13576
    Liked
    1445 times
    Join Date
    Aug 2010
    Location
    Western NY state (USA)
    Posts
    11,053
    Yeah, well, unfortunately, Apple/iTunes/iPod app code music a little differently (some would say it is annoying odd).

    It's best to not to try to put music onto the iPad for playing spefically through the iPod app. It's best to leave that kind of synching to iTunes.

    That doesn't stop you from SSHing in and putting music on the iPad (I think there are music playing apps you can use, but I don't remember any off the top of my head). Just don't try to put it in the iPod section. Won't work (AFAIK).

    Marilyn
    Space Gray 32GB WiFi-only iPad Air & Black 32GB iPhone 5 (both jailbroken on iOS 7.0.4 w/evasi0n7)
    * * * PLEASE READ * * * Forum Rules * * * Hacking Section Rules * * * PLEASE READ * * *


Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. How to use a secure proxy on ipad
    By addiosamigo in forum iPad Help
    Replies: 4
    Last Post: 05-19-2011, 02:05 AM
  2. secure picture app for ipad?
    By danx55 in forum iPad 2 Forum
    Replies: 1
    Last Post: 05-07-2011, 02:03 AM
  3. iPad Shell Wraps from etsy.com
    By tzimisce in forum iPad Accessories for iPAD 1, 2 and 3
    Replies: 3
    Last Post: 03-28-2011, 05:57 AM
  4. how to secure an iPad at launch
    By JocK in forum iPad General Discussions
    Replies: 10
    Last Post: 02-27-2011, 01:04 PM
  5. Secure Transactions on iPad
    By RAC in forum iPad General Discussions
    Replies: 10
    Last Post: 09-14-2010, 10:50 AM

Search tags for this page

how to use openssh on ipad
,
ipad putty
,

ipad ssh

,
openssh ipad
,
putty connect to ipad
,

putty for ipad

,

putty ipad

,

ssh ipad

Click on a term to search for related topics.

Tags for this Thread