Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: SSH into iPhone via 3G/EDGE
is a discussion within theGeneral iPhone Chat
forums, a part of theiPhone 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
...-
11-20-2008, 07:09 PM #1What's Jailbreak?
- Join Date
- Nov 2008
- Location
- San Juan, PR
- Posts
- 7
- Thanks
- 2
- Thanked 0 Times in 0 Posts
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
-
11-20-2008, 07:11 PM #2ninja of MMi
- 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.

-
11-20-2008, 07:17 PM #3What'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
-
11-20-2008, 07:35 PM #4ninja of MMi
- 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.

-
11-20-2008, 08:07 PM #5plain jane vanilla (post count restored to FULL AWESOMENESS)
- Join Date
- Jul 2007
- Location
- ATL
- Posts
- 11,692
- Thanks
- 181
- Thanked 1,459 Times in 1,264 Posts
It wont work because the secure shell protocol in OpenSSH doesnt support it.
-
The Following User Says Thank You to cpjr For This Useful Post:
pesqair (11-20-2008)
-
11-20-2008, 08:11 PM #6ninja of MMi
- 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.

-
11-20-2008, 08:17 PM #7plain jane vanilla (post count restored to FULL AWESOMENESS)
- Join Date
- Jul 2007
- Location
- ATL
- Posts
- 11,692
- Thanks
- 181
- Thanked 1,459 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.
-
The Following User Says Thank You to cpjr For This Useful Post:
cricketlang (11-20-2008)
-
11-20-2008, 08:19 PM #8What'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-20-2008, 08:19 PM #9Retired Moderator
- Join Date
- Nov 2007
- Location
- Independence, LA
- Posts
- 5,647
- Thanks
- 656
- Thanked 763 Times in 591 Posts
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

-
11-20-2008, 08:26 PM #10plain jane vanilla (post count restored to FULL AWESOMENESS)
- Join Date
- Jul 2007
- Location
- ATL
- Posts
- 11,692
- Thanks
- 181
- Thanked 1,459 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.
-
11-20-2008, 08:26 PM #11ninja of MMi
- Join Date
- May 2008
- Location
- Draper, UT
- Posts
- 2,124
- Thanks
- 89
- Thanked 243 Times in 218 Posts
-
The Following User Says Thank You to cricketlang For This Useful Post:
pesqair (11-20-2008)
-
11-20-2008, 08:46 PM #12Retired Moderator
- Join Date
- Nov 2007
- Location
- Independence, LA
- Posts
- 5,647
- Thanks
- 656
- Thanked 763 Times in 591 Posts
Yep didn't see the GPS tracker part.....LOL my bad.

-
07-06-2009, 10:39 PM #13
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]
-
The Following User Says Thank You to michaelwithe21 For This Useful Post:
kraziebone (04-07-2011)
-
04-17-2010, 01:45 PM #14What's Jailbreak?
- Join Date
- Nov 2008
- Location
- San Juan, PR
- Posts
- 7
- Thanks
- 2
- Thanked 0 Times in 0 Posts
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?
-
04-29-2010, 12:53 PM #15
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
-
08-07-2012, 05:44 PM #16
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 >>




LinkBack URL
About LinkBacks
Reply With Quote

