+ Reply
Results 1 to 16 of 16

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: SSH into iPhone via 3G/EDGE

is a discussion within the

General iPhone Chat

forums, a part of the

iPhone Modding

section;
Does anyone know how or if it is possible to SSH into an iPhone via its 3G/EDGE connection? (Not having it on the same WLAN as the computer) I am
...
  1. #1
    What's Jailbreak?
    Join Date
    Nov 2008
    Location
    San Juan, PR
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default SSH into iPhone via 3G/EDGE
    Does anyone know how or if it is possible to SSH into an iPhone via its 3G/EDGE connection? (Not having it on the same WLAN as the computer) I am trying to find a way to start the GPS Tracker app from afar.

    Thanks

  2. #2
    ninja of MMi cricketlang's Avatar
    Join Date
    May 2008
    Location
    Draper, UT
    Posts
    2,124
    Thanks
    89
    Thanked 243 Times in 218 Posts

    the only way i could think that would POSSIBLY work would be if you get the data ip address and try logging in using that instead of the wifi ip address. you could give that a shot and see if it works. i dont know though. ive never tried myself. let me know if it works
    The beatings will continue until morale improves.

  3. #3
    What's Jailbreak?
    Join Date
    Nov 2008
    Location
    San Juan, PR
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    it doesn't seem to work...

    Macintosh:~ macuser$ ssh 166.193.23.197
    ssh: connect to host 166.193.23.197 port 22: Operation timed out

  4. #4
    ninja of MMi cricketlang's Avatar
    Join Date
    May 2008
    Location
    Draper, UT
    Posts
    2,124
    Thanks
    89
    Thanked 243 Times in 218 Posts

    sorry dude.... i dont know what to tell you. maybe one else knows something i dont
    The beatings will continue until morale improves.

  5. #5
    plain jane vanilla (post count restored to FULL AWESOMENESS) cpjr's Avatar
    Join Date
    Jul 2007
    Location
    ATL
    Posts
    11,691
    Thanks
    181
    Thanked 1,461 Times in 1,264 Posts

    It wont work because the secure shell protocol in OpenSSH doesnt support it.

  6. The Following User Says Thank You to cpjr For This Useful Post:

    pesqair (11-20-2008)

  7. #6
    ninja of MMi cricketlang's Avatar
    Join Date
    May 2008
    Location
    Draper, UT
    Posts
    2,124
    Thanks
    89
    Thanked 243 Times in 218 Posts

    nice to know cpjr. hey not to jack ANOTHER thread but a user was asking whether or not the sidekick plan would work on the iphone earlier....do you know anything about this. i now a different user confirmed its possible but didnt tell us how????
    The beatings will continue until morale improves.

  8. #7
    plain jane vanilla (post count restored to FULL AWESOMENESS) cpjr's Avatar
    Join Date
    Jul 2007
    Location
    ATL
    Posts
    11,691
    Thanks
    181
    Thanked 1,461 Times in 1,264 Posts

    The Sidekick plan is only for sidekicks because it loops through Danger's servers for data compression, access to your Sidekick account, etc.

    No, it wont work....it would be like trying to use a Blackberry data plan on your iphone.

  9. The Following User Says Thank You to cpjr For This Useful Post:

    cricketlang (11-20-2008)

  10. #8
    What's Jailbreak?
    Join Date
    Nov 2008
    Location
    San Juan, PR
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    so there is no way?

    thanks

  11. #9
    Retired Moderator A Retired Mod's Avatar
    Join Date
    Nov 2007
    Location
    Independence, LA
    Posts
    5,642
    Thanks
    656
    Thanked 765 Times in 592 Posts

    Quote Originally Posted by pesqair View Post
    Does anyone know how or if it is possible to SSH into an iPhone via its 3G/EDGE connection? (Not having it on the same WLAN as the computer) I am trying to find a way to start the GPS Tracker app from afar.

    Thanks
    Here is a guide if you would like to ssh into the iphone without wifi. iphone3G-Mods.com: Guide - SSH to your Iphone via USB

  12. #10
    plain jane vanilla (post count restored to FULL AWESOMENESS) cpjr's Avatar
    Join Date
    Jul 2007
    Location
    ATL
    Posts
    11,691
    Thanks
    181
    Thanked 1,461 Times in 1,264 Posts

    No way to SSH without a usb connection.

    ^^But yeah, I use iphone_tunnel all the time to SSH without wifi.

  13. #11
    ninja of MMi cricketlang's Avatar
    Join Date
    May 2008
    Location
    Draper, UT
    Posts
    2,124
    Thanks
    89
    Thanked 243 Times in 218 Posts

    Quote Originally Posted by Zwayne View Post
    Here is a guide if you would like to ssh into the iphone without wifi. iphone3G-Mods.com: Guide - SSH to your Iphone via USB
    if you read what he wants to do that wouldnt really help
    The beatings will continue until morale improves.

  14. The Following User Says Thank You to cricketlang For This Useful Post:

    pesqair (11-20-2008)

  15. #12
    Retired Moderator A Retired Mod's Avatar
    Join Date
    Nov 2007
    Location
    Independence, LA
    Posts
    5,642
    Thanks
    656
    Thanked 765 Times in 592 Posts

    Yep didn't see the GPS tracker part.....LOL my bad.

  16. #13
    Green Apple
    Join Date
    Jul 2009
    Posts
    30
    Thanks
    8
    Thanked 3 Times in 3 Posts

    Default YES you can use 3G internet to SSH to the phone!!
    I AM THE FIRST TO FIGURE THIS OUT!! i think... =P

    I have alot of experience with SSH and unix... and i found a way for this work... please let me know if anyone els has already claimed responsibility...

    Set up an SSH server on your mac/pc, forward the port you used for SSH (default 22, but you should change it to something els for security reasons and reverse tunnel reasons) or put your IP into DMZ mode... once this is tested and completed, jailbreak your iphone and download Mobile Terminal.app, use it to enter this:

    login root
    (TYPE IN alpine FOR PASSWORD, change with passwd command later)

    Once you are logged into root on the iphone enter the following without the ()'s to make a reverse connection to your home computer, the Username = your Home computer user account name, you must use a \ and a space to create a space between the user name, the IPaddress=home computer IP:

    ssh -p (SSH PORT) User\ Name@IPaddress -R 1201:localhost:22

    This command will send the SSH server to your computer via localhost on port 1201 (you can change that to anything not being used).

    so go onto your home computer and enter this into terminal:

    ssh -p 1201 root@localhost

    and bam, your in... amazing... this can be used for VEENCY as well to fully control your iphone no matter where it is or who has it... genius...

    you can also do this using "mobile" as the user instead of "root", both passwords can be changed from "alpine" to anything you want via the passwd command.. if you need any help, just email me at [email protected]

  17. The Following User Says Thank You to michaelwithe21 For This Useful Post:

    kraziebone (04-07-2011)

  18. #14
    What's Jailbreak?
    Join Date
    Nov 2008
    Location
    San Juan, PR
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default bump
    yes that works, but only if you have your iphone with you at the time. does anyone know of any other way to do this?

  19. #15
    Green Apple
    Join Date
    Jul 2009
    Posts
    30
    Thanks
    8
    Thanked 3 Times in 3 Posts

    Default No, you do not need to have the phone to do this
    You can control your iphone by forwarding veencys 5900 port (or watever server u want) using your home computer, the script is put on the phone ONCE, once its on, it will activate no matter where the phone goes or who has it... see:

    Connect and control your iPhone from anywhere SSH/VNC

    then use this script to use in startup of iPhone:

    Tip: Connect to your iPhone using VNC and SSH llemarie’s weblog

  20. #16
    iPhoneaholic brokentwice's Avatar
    Join Date
    Sep 2007
    Posts
    326
    Thanks
    36
    Thanked 34 Times in 27 Posts

    has anyone gotten this to work where it loads on start up and autossh keeps trying to connect to the Server?

    I cant seem to get this to work when using autossh from the script in the link ..

    only way is if I use the phone to Login to terminal and sign on to the server manually..

    I just Want it to keep trying to connect to my server and launch on start up ... With no password needed to login to ssh >>

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