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


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

Notices

iPhone versions available: Enhanced | Light

iPhone Social

Reply
 
Thread Tools Display Modes
Old 01-16-2008, 07:33 PM   #1 (permalink)
 
Join Date: Nov 2007
Location: Liverpool
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default SSH using WinSCP

Can anyone talk me through the method of how to get my iPhone connected via SSH through WinSCP. I need to replace a file in one of my directories but have never done this before. Have looked at the app but doesnt mean much to me to be honest

Thanks in advance

Gav
Gavo is offline   Reply With Quote
Old 01-16-2008, 08:18 PM   #2 (permalink)
 
patrickj's Avatar
 
Join Date: Sep 2007
Posts: 2,911
Thanks: 16
Thanked 15 Times in 14 Posts
Default

Here's some steps:

-- Install OpenSSH on your iPhone if you haven't already - it's under System category in Installer - it requires that you have BSD Subsystem installed first (also under System)
-- It's a good idea to keep SSH running on the iPhone only when needed - so you may want to look at an app like Services which helps you toggle it on/off easily
-- Once you have SSH running on the iPhone, you'll want to make a note of your iPhone's IP address - you'll need this to connect to it - go to Settings > WiFi, and click on the network you're connected to - that should list your IP address for you - something like 192.168.1.x or similar depending on your network's addressing scheme
-- Then launch WinSCP on your computer
-- In the Host Name field fill in the IP address of your iPhone
-- Leave the port as 22
-- Fill in username as 'root' (without the quotes) and either 'alpine' or 'dottie' as the password depending on your firmware version
Set the File Protocol (drop down) to SCP - and hit Login
If you're prompted about the server's host key not being in the cache file, just click Yes - and you should be connected ...
__________________
Just Another iPhone Blog
patrickj is offline   Reply With Quote
Old 01-16-2008, 08:27 PM   #3 (permalink)
 
Join Date: Nov 2007
Location: Liverpool
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by patrickj View Post
Here's some steps:

-- Install OpenSSH on your iPhone if you haven't already - it's under System category in Installer - it requires that you have BSD Subsystem installed first (also under System)
-- It's a good idea to keep SSH running on the iPhone only when needed - so you may want to look at an app like Services which helps you toggle it on/off easily
-- Once you have SSH running on the iPhone, you'll want to make a note of your iPhone's IP address - you'll need this to connect to it - go to Settings > WiFi, and click on the network you're connected to - that should list your IP address for you - something like 192.168.1.x or similar depending on your network's addressing scheme
-- Then launch WinSCP on your computer
-- In the Host Name field fill in the IP address of your iPhone
-- Leave the port as 22
-- Fill in username as 'root' (without the quotes) and either 'alpine' or 'dottie' as the password depending on your firmware version
Set the File Protocol (drop down) to SCP - and hit Login
If you're prompted about the server's host key not being in the cache file, just click Yes - and you should be connected ...
Thats brilliant, but its asking for a session password to authenticate access. Any ideas ?
Gavo is offline   Reply With Quote
Old 01-16-2008, 08:32 PM   #4 (permalink)
 
Join Date: Nov 2007
Location: Liverpool
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok got that now ... it was 'dottie' to login but 'alpine' to authenticate. I'm in now but cant find the folder I'm looking for !

Where's the frameworks folder ?

Gav
Gavo is offline   Reply With Quote
Old 01-16-2008, 08:35 PM   #5 (permalink)
 
Join Date: Nov 2007
Location: Liverpool
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ignore me ! ... couldnt see it for looking. Very impressive that & very useful too.

Thanks very much for your help !

Gav
Gavo is offline   Reply With Quote
Old 01-16-2008, 08:36 PM   #6 (permalink)
 
patrickj's Avatar
 
Join Date: Sep 2007
Posts: 2,911
Thanks: 16
Thanked 15 Times in 14 Posts
Default

Quote:
Originally Posted by Gavo View Post
Ok got that now ... it was 'dottie' to login but 'alpine' to authenticate. I'm in now but cant find the folder I'm looking for !

Where's the frameworks folder ?

Gav
Under /Library directory on my iPhone - but not sure exactly what you're looking for ...
__________________
Just Another iPhone Blog
patrickj is offline   Reply With Quote
Old 04-22-2008, 07:04 PM   #7 (permalink)
 
Join Date: Nov 2007
Location: Liverpool
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, I'm opening this thread again as I can no longer SSH into my iphone with the settings mentioned above.

I've since changed to 1.1.4 so does anyone know the new SSH settings ? Thanks.

Gavo
Gavo is offline   Reply With Quote
Old 04-22-2008, 07:11 PM   #8 (permalink)
 
patrickj's Avatar
 
Join Date: Sep 2007
Posts: 2,911
Thanks: 16
Thanked 15 Times in 14 Posts
Default

Quote:
Originally Posted by Gavo View Post
Ok, I'm opening this thread again as I can no longer SSH into my iphone with the settings mentioned above.

I've since changed to 1.1.4 so does anyone know the new SSH settings ? Thanks.

Gavo
Settings are as described above for 1.1.4. Same methods, same username and password ...
__________________
Just Another iPhone Blog
patrickj is offline   Reply With Quote
Old 04-22-2008, 07:14 PM   #9 (permalink)
 
Join Date: Nov 2007
Location: Liverpool
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hmm, thats strange then because I cant login to my phone with those settings.
Gavo is offline   Reply With Quote
Old 04-22-2008, 07:19 PM   #10 (permalink)
 
patrickj's Avatar
 
Join Date: Sep 2007
Posts: 2,911
Thanks: 16
Thanked 15 Times in 14 Posts
Default

Quote:
Originally Posted by Gavo View Post
Hmm, thats strange then because I cant login to my phone with those settings.
What happens when you try? Give us some details, and maybe we can help resolve ...
__________________
Just Another iPhone Blog
patrickj 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 04:41 PM.


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