Everything iPhone iPhone Accessory Store iPhone news iPhone accessory reviews iPhone forums iPhone Social


Go Back   iPhone 3G | iPod touch Forums > Apple iPhone Software > iPhone Modifications

Notices

iPhone versions available: Enhanced | Light



Reply
 
Thread Tools Display Modes
Old 02-22-2008, 12:20 AM   #1 (permalink)
 
emx620's Avatar
 
Join Date: Jul 2007
Posts: 113
Thanks: 1
Thanked 0 Times in 0 Posts
Default How to SSH into your iPhone

Sorry if this has been posted before but I keep getting asked. First off to enable SSH on your phone do this:
  • SSH is a service that you can install and run on the iPhone that allows you to access the phone's files / folders from your PC or Mac
  • You need to install BSD Subsystem and OpenSSH (in that order) from under the System category in Installer in order to be able to use it
Putty is downloaded here:
http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe

Make sure your iPhone is connected to your network. To find your IP address, go to Settings -> Wi-Fi
Click the blue arrow on the network you are connected to. Your IP address will be in there. Use that number for the rest of this guide.

Cygwin Instructions:
ssh root@xxx.xxx.x.xxx Put your IP address here.
For me it was:
ssh root@10.4.9.40
It will prompt for a password which will be alpine.

Putty Instructions:
In the Putty configuration window under Host Name - put your ip address here
Click Open.
Click Yes if prompted.
Put root as the login and alpine as the password.

WinSCP Instructions:
After connecting to your iPhone, do the following:
Commands -> Open Terminal
Click Ok if prompted. After typing in each command click Execute.

CyberDuck
Click New Connection.
In the Protocol dropwdown menu, choose SSH.
In the Server field, input your iPhone's IP.
In the Username field, enter root.
In the Password field, enter alpine, unless you have changed it.
Click Connect.
--- Thanks John ---

Term-VT100
"Install http://www.trejan.com/irepo/ source in Installer. Then install "SUID Lib Fix" and "Term-vt100 SUID fix" from the Tweaks 1.1.3 cstegory."
Once you run this fix you will still be prompted for a password when launching term but it will now accept "alpine" and allow you in.
--- Thanks Griffinaz and Tinman---

Hope this helps. Let me know if you have any questions.

Last edited by emx620; 03-17-2008 at 09:32 AM.
emx620 is offline   Reply With Quote
Old 02-22-2008, 12:32 AM   #2 (permalink)
Moderator
 
Lincoln's Avatar
 
Join Date: Aug 2007
Location: Charleston, WV
Posts: 5,851
Thanks: 42
Thanked 163 Times in 127 Posts
Send a message via AIM to Lincoln
Default

Nice guide; I get asked this question very frequently.

However, if I'm not mistaken, all your listed programs are Windows programs. Inlcude Cyberduck for the Mac. The instructions are as follows:

In Cyberduck, click New Connection.
In the Protocol dropwdown menu, choose SSH.
In the Server field, input your iPhone's IP.
In the Username field, input root.
In the Password field, input alpine, unless you have changed it.
Click Connect.

- John
Lincoln is offline   Reply With Quote
Old 02-22-2008, 01:02 AM   #3 (permalink)
 
Hawk's Avatar
 
Join Date: Aug 2007
Location: Atlanta, Georgia, USA
Posts: 1,946
Thanks: 29
Thanked 43 Times in 33 Posts
Send a message via AIM to Hawk
Default

anyone have some instructions for Term VT100?
Everytime I go into it, it asks for a password right off the bat, and alpine apparently is not it.
After it fails for the first time I enter everything like it's listed for Cygwin:
ssh root@your ip address here
It will ask for a password which will be alpine.
__________________
Hawk Pettengill

I gotta iPhone
Hawk is offline   Reply With Quote
Old 02-22-2008, 02:05 AM   #4 (permalink)
Moderator
 
Lincoln's Avatar
 
Join Date: Aug 2007
Location: Charleston, WV
Posts: 5,851
Thanks: 42
Thanked 163 Times in 127 Posts
Send a message via AIM to Lincoln
Default

Quote:
Originally Posted by Hawk View Post
anyone have some instructions for Term VT100?
Everytime I go into it, it asks for a password right off the bat, and alpine apparently is not it.
After it fails for the first time I enter everything like it's listed for Cygwin:
ssh root@your ip address here
It will ask for a password which will be alpine.
I have the same issue. I always get incorrect login and incorrect password.

- John
Lincoln is offline   Reply With Quote
Old 02-22-2008, 04:19 AM   #5 (permalink)
 
emx620's Avatar
 
Join Date: Jul 2007
Posts: 113
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Hawk View Post
anyone have some instructions for Term VT100?
Everytime I go into it, it asks for a password right off the bat, and alpine apparently is not it.
After it fails for the first time I enter everything like it's listed for Cygwin:
ssh root@your ip address here
It will ask for a password which will be alpine.
Are you specifying the user name? Maybe its trying to use some other default user name the iPhone doesn't have?
emx620 is offline   Reply With Quote
Old 02-22-2008, 04:28 AM   #6 (permalink)
 
justahsquirrel's Avatar
 
Join Date: Jun 2007
Location: Queens, NY
Posts: 572
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to justahsquirrel Send a message via MSN to justahsquirrel
Default

Quote:
Originally Posted by Hawk View Post
anyone have some instructions for Term VT100?
Everytime I go into it, it asks for a password right off the bat, and alpine apparently is not it.
After it fails for the first time I enter everything like it's listed for Cygwin:
ssh root@your ip address here
It will ask for a password which will be alpine.
are you on 1.1.3? cause if you are, there is a few fixes you need to install to get vt100 working properly.
__________________


" Everything is for a moment so have your moment in time, tomorrow might be your last , might as well have a blast"
justahsquirrel is offline   Reply With Quote
Old 02-22-2008, 04:29 AM   #7 (permalink)
 
Hawk's Avatar
 
Join Date: Aug 2007
Location: Atlanta, Georgia, USA
Posts: 1,946
Thanks: 29
Thanked 43 Times in 33 Posts
Send a message via AIM to Hawk
Default

Quote:
Originally Posted by emx620 View Post
Are you specifying the user name? Maybe its trying to use some other default user name the iPhone doesn't have?
I don't actually know. I've been instructed to input ssh root@ipaddress and then hit enter and then enter alpine for the password. Never works.
But it does just ask for a password when I first start the app.
__________________
Hawk Pettengill

I gotta iPhone
Hawk is offline   Reply With Quote
Old 02-22-2008, 06:29 AM   #8 (permalink)
 
justahsquirrel's Avatar
 
Join Date: Jun 2007
Location: Queens, NY
Posts: 572
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to justahsquirrel Send a message via MSN to justahsquirrel
Default

Quote:
Originally Posted by Hawk View Post
I don't actually know. I've been instructed to input ssh root@ipaddress and then hit enter and then enter alpine for the password. Never works.
But it does just ask for a password when I first start the app.
to ssh into the phone, make sure you have openssh installed in the iphone.

and bsdsubsystems..which is the first to get installed.

launch which ever scp client you have. I'm on a PC using winscp.

host name :root@192.168.x.xxx...what ever your ipaddress is on your iphone
user name: root
pw: alpine
file protocol :scp

as far as vt100 with 1.1.3 you need to do a few fixes before you get it to work
1. install services
2. install services.app SUID fix
3. install SUID lib fix
4.bsd sub system 2.0 termfix.

when you launch vt100 hit enter
login: root
pw: alpine, it will not type out with ***** so just keep typing.

good luck.

ps. make sure the phone and the computer you are using is on the same network or else your gonna hit a brick wall!
__________________


" Everything is for a moment so have your moment in time, tomorrow might be your last , might as well have a blast"
justahsquirrel is offline   Reply With Quote
Old 02-22-2008, 02:51 PM   #9 (permalink)
 
Griffinaz's Avatar
 
Join Date: Oct 2007
Location: Phoenix, Arizona
Posts: 1,055
Thanks: 2
Thanked 1 Time in 1 Post
Default

To get Term-VT100 to permit you to login, follow these steps (Thanks to Tinman for posting these in a different thread):

"Install http://www.trejan.com/irepo/ source in Installer. Then install "SUID Lib Fix" and "Term-vt100 SUID fix" from the Tweaks 1.1.3 cstegory."

Once you run this fix you will still be prompted for a password when launching term but it will now accept "alpine" and allow you in.
__________________
Griffinaz
Phoenix, AZ
Griffinaz is offline   Reply With Quote
Old 03-05-2008, 04:48 AM   #10 (permalink)
 
timothy's Avatar
 
Join Date: Nov 2007
Location: Thousand Oaks, Californication
Posts: 104
Thanks: 18
Thanked 3 Times in 3 Posts
Default

ok. This worked for me in this order:
1. install BSD
2. install openSSH
3. install VT100
4. (I'm 1.1.4 I know) install the VT100 fix (despite it saying for 1.1.3 only
5. [PC] install WinSCP
6. following the above persons login info -
host name :root@192.168.x.xxx...what ever your ipaddress is on your iphone (located in settings/wifi)
user name: root
pw: alpine
file protocol :scp
7. don't connect yet.
8. type in VT100 "ssh" (obviously without the quotes)
9. while iphone is opening that, use winSCP to connect.
10. in my case, wait 5 seconds, get a window that looks like WSftp and many other ftp programs
11. do happy dance

Hope this helps!
timothy is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 07:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Integrated by BBpixel ©2004-2008, jvbPlugin
Android forums

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53