1. CCB0x45's Avatar
    Hey, we have a full MobileTerminal GUI app for the iPhone for those of you with the unix binaries on there, it wraps them, you can use ssh, etc straight from your phone...
    check it out at

    help us out on irc.osx86.hu in #iphone-uikit
    2007-08-02 09:30 AM
  2. JakeyBoy's Avatar
    looks very nice definitly something to look into thanks for sharing.
    Old School Gaming Matrix
    Deviant Art
    "Don't think you can, know you can"

    2007-08-02 03:18 PM
  3. JedixJarf's Avatar
    Freakin sweet man.
    2007-08-02 06:09 PM
  4. copland007's Avatar
    Nice! Now I have a reason to get those ssh binaries on the phone, these 2 together = ssh out on the iphone. I know what I'll be doing tonight
    2007-08-02 08:59 PM
  5. 89.tristan's Avatar
    i'm getting a tcp error when i try that.....
    2007-08-06 05:05 AM
  6. smoovie's Avatar
    Anyone have this working using Windows machine?
    2007-08-06 05:10 AM
  7. JedixJarf's Avatar
    Yep . Just follow the instructions.
    2007-08-06 05:56 AM
  8. arthursdomain's Avatar
    I downloaded an copied over the files for the ssh binkit 06 , i was wondering if anyone got ping to work. when i type ping in, it acts like the program doesnt exist. Also someone mentioned SSH out? can anyone confirm this?
    2007-08-06 08:44 AM
  9. dmbaird's Avatar
    how can i ssh out from iphone?
    2007-08-08 04:20 AM
  10. win1fight2's Avatar
    can somebody explain how I can use this app? Looks so cool...
    2007-08-08 05:03 AM
  11. copland007's Avatar
    Oh yes, ssh out from the iphone is confirmed working by me

    It isn't perfect, but what a leap forward, three cheers for all the developers/modders out there putting all their effort into this!

    A quick run down of what I did to get it setup...

    1. Of course jailbreak first and foremost...

    2. Get ssh onto the phone: http://cre.ations.net/blog/post/howt...on-your-iphone

    The script tries to copy your iTunesMobileDevice.dll into the working directory, and it comes with its own iphoneinterface.exe. I was getting errors trying to use those versions, to fix I copied my old (from iphone v1.0.0) iTunesMobileDevice.dll, and my existing working iphoneinterface.exe into the sshkit directory. Problems went away and I was off and running.

    Once those errors were resolved this was very easy to do since I'm using windows. If you are on a mac and know how to read a batch file, just open it up and do all the steps manually, will take a little time but there's nothing there that requires a windows box (I think there's a mac version of that easy install somewhere, just don't have the link handy).

    3. Install Terminal.app: http://code.google.com/p/mobileterminal/

    Again very easy, just follow their instructions.

    4. Install ssh2: http://iphone.natetrue.com/ssh_3.2.9...o_acorn.tar.gz

    I only copied the client binaries onto my phone (nothing with 'd' in the filename, i.e. 'sshd2', those are the server binaries).

    Follow the instructions in the README.

    5. Anything you've uploaded to the phone that you need to execute you'll need to "chmod +x" the binary, i.e. "chmod +x ssh2".

    6. Reboot iphone, a pretty new 'Terminal' application is on the home screen, open it up, then ssh out like you would from any *nix box "ssh2 [email protected]"


    I downloaded an copied over the files for the ssh binkit 06 , i was wondering if anyone got ping to work. when i type ping in, it acts like the program doesnt exist. Also someone mentioned SSH out? can anyone confirm this?
    Probably just not in your $PATH, give the explicit path to where you uploaded ping, for me "/sbin/ping server.com" works.
    Last edited by copland007; 2007-08-08 at 07:53 AM. Reason: Automerged Doublepost
    2007-08-08 07:44 AM
  12. Kyle Matthews's Avatar
    Awesome, copland. Great info.

    ↑ ↑ ↓ ↓ ← → ← → B A [select] [start] Kyle Matthews
    2007-08-08 08:28 AM
  13. copland007's Avatar
    Here's a hint to help those looking to create shortcuts for common things...

    Upload/create the file /var/root/.profile with these contents:
    # Aliases
    alias pico='pico -w'
    alias rm='rm -i'
    alias ssh='ssh2'
    alias myssh='ssh2 [email protected]'
    # User specific environment
    export PATH TERM
    This assumes you have uploaded vt100 for using fullscreen goodies like pico. If you haven't got vt100 on your iphone remove the TERM line and remove 'TERM' from the end of the 'export' line.

    If you are a *nix user no explanation is needed, you know what that file does and why... for those who don't read on:

    The .profile file will get 'sourced' when you login/start a 'sh' shell. By default the preferred shell for the root user is '/bin/sh'. If you want to use this file for a different shell you need to rename and possibly change the contents, all depends on the shell. For bash shells just change the filename to .bash_profile, the same content works for both /bin/sh and /bin/bash.

    These profile files let you configure your environment the way you like. I've included some sample common settings that you can remove or alter to your liking. Here's what each line does:

    The aliases are shortcuts, typing the first part of the alias will execute what's in the quotes.

    The pico alias will execute pico with the '-w' flag, prevents long lines from wrapping.

    The rm alias will execute rm with the '-i' flag, prompts you to confirm everything you try to delete (you can override this by doing rm -f).

    The ssh alias is just for those who don't want to type ssh2.

    The myssh is an example for you to setup a shorter way of ssh'ing into a common host with a username so you don't have to type/touch it all out everytime on the iphone.

    "PATH=$PATH:/sbin" -> This guy adds directories to be searched when you type a command to execute. You can add more paths by adding ":/path/to/add" to the end of that line.

    "TERM=vt100" -> If you want to use full screen goodies like pico on the iphone you need to install vt100, and you need to set the TERM environment variable to be 'vt100'. That's what this line is doing. If you don't have vt100 installed remove or comment this line!

    The final 'export' command injects the specified variables into your environment, in this case our updated 'PATH' and 'TERM' will get injected into our environment.

    Last edited by copland007; 2007-08-08 at 10:15 AM. Reason: added /usr/sbin to PATH
    2007-08-08 09:26 AM
  14. dmbaird's Avatar
    I tried doing the .profile file (I'm familiar with a unix base)
    But I was unable to get it to take. Did I miss something?
    2007-08-08 09:55 AM
  15. copland007's Avatar
    If you have 'printenv' and 'alias' available they can help troubleshooting to see if your .profile changes take affect. Open up the terminal app and execute 'alias', it should return the list of all currently defined aliases.

    Executing 'printenv' should show any changes to anything that is 'exported' from your .profile, like the updated PATH and TERM settings.

    Should look something like the attached screenshot...
    Attached Thumbnails Mobile Terminal alpha version!-profile.png  
    2007-08-08 10:39 AM
  16. copland007's Avatar
    I should also make note that I am using Terminal v85 if that makes a difference, it's possible earlier versions don't behave the same way.
    2007-08-08 10:41 AM
  17. dmbaird's Avatar
    I'm still having an issue. For some reason it wont take the aliases. I'm using v85. I put the file in the right location. But it's just not working.
    IDK if this helps, but I'm unable to execute the file. I get "permission denied". Even after chmod 777.
    So out of curiosity I made another file in the same location. With just one alias string in it. But that two gets permission denied. Am I missing a step somewhere?
    2007-08-08 06:10 PM
  18. copland007's Avatar
    Permissions only need to be 600, .profile isn't executed, it's sourced. To force it to re-source execute this "source .profile"
    2007-08-08 07:03 PM
  19. dmbaird's Avatar
    oh ok.
    hmm when I re-source it, It works great.
    So you're saying it isn't being sourced correctly in the first place?
    2007-08-08 07:51 PM
  20. irie's Avatar
    What enhancements do you get with installing ssh2 instead of the regular ssh?
    2007-08-09 07:49 AM
40 12