06/05/2010, 11:58 AM
|
#1 (permalink) | |
|
Member
![]() Join Date: May 2010
Posts: 316
Thanks: 82
Thanked 130 Times in 49 Posts
|
Whew—after two days of forum diving and experimentation, I finally got FTP up and running over SSH. I'd like to share the wealth: all the steps you need, in one place, to gain FTP access to your Pre over Wi-Fi—no more swapping out USB cables!
This can be done in just 5 steps, which I'll detail below:
Since this has been well documented and you've probably done this much by now, I'm going to cheat and refer you to these excellent install guides:
With Preware on your system, you can manage most of your system tweaking right on the Pre with this single marvelous utility. Open up Preware to the main screen. It may take a minute or two to check for updates and index available packages.
Terminal gives you direct command-line access to to your Pre, which is amazing, but don't have too much fun with it—when they say it's not very stable, they're not kidding. For our purposes here it should work fine. I pulled the following command sequence from the helpful Application: OpenSSH wiki. (Really, everything you need is right there, but the trick is knowing which to apply and the necessary prerequisites.) So, to generate your SSH keys, start the Terminal application and enter the following commands: cd /Press ↵ to accept the default filename. When prompted, press ↵ twice for a blank password. Then enter the final commands to transfer your keys to usable locations: mv /home/root/.ssh/id_rsa.pub /home/root/.ssh/authorized_keysYou're done with Terminal and can close it. 4. transfer SSH keys to desktop via USB Connect the Pre to your computer via USB and put it in Drive mode (possibly for the last time!) Copy the id_rsa file from the Pre to your computer's hard drive and remember where you saved it. That's it! You can "safely disconnect" or "eject" the Pre's drive and unplug the USB cable. 5. configure FileZilla on desktop and connect If you don't already have it, download and install the FileZilla client on your computer. This is a great general-purpose FTP client, but it's particularly suited to our purposes because of its native ability to handle the OpenSSH private key and convert it into a format it can use without any additional software. To add your SSH private key (again, per the Application: OpenSSH wiki):
By the way, the FileZilla application folder is easily portable on a USB drive if you wish to access the Pre from other machines. Quote:
Last edited by zParticle; 06/21/2010 at 10:24 PM. |
|
06/05/2010, 12:18 PM
|
#2 (permalink) |
|
Member
![]() ![]() Join Date: Jul 2009
Location: Orlando, FL by way of Brooklyn NY
Posts: 1,142
Thanks: 186
Thanked 307 Times in 210 Posts
|
Hmm that seems like an awful lot of steps to basically accomplish somethng relatively easy with WinSCP.
I have had full FTP like access to my pre almost from the start, just had to install Optware and download free WinScp, and use SFTP protocal Unless I am missing something??? I can get my current IP and in 2 seconds log into my Pre wirelessly.. I use WS FTP on the client side.. always have, but Im sure Filezilla would work too NOW what I WANT desparately is an FTP client ON the PRE so I can SEND files to servers... Thats what I thought this was, and my heart went a flutter for a second..
__________________
I have always been a "Phone" person. My love of "Phones" started at an early age. Avatar to the left, is circa 1952, see the sparkle in my lil toddler eyes ☺ Cell History: Bag Phone, Brick Phone, Various Micro Tacs, Treo's, Centro, the PRE! I ♥ Pre
|
06/05/2010, 12:52 PM
|
#3 (permalink) | ||
|
Member
![]() Join Date: May 2010
Posts: 316
Thanks: 82
Thanked 130 Times in 49 Posts
|
Quote:
Quote:
From what I read it looked like the WinSCP path was actually more complicated to set up and required I always run that software instead of just connecting with FileZilla, which I was already using anyway. This route only ever requires FileZilla on the client side, and like you I'm usually connected in a couple of seconds. I never have to bother checking the IP address here, since I just have my router reserve the same address for the Pre. I think you can also configure a static IP on the Pre for a given SSID. Oh, me too, certainly. Sorry to get your hopes up. |
||
06/10/2010, 11:27 AM
|
#7 (permalink) |
|
Member
![]() Join Date: Feb 2005
Posts: 1,970
Thanks: 241
Thanked 67 Times in 61 Posts
|
Excellent post. Thanks for working out the details.
Followed the procedure and it worked perfectly. Thanks. Time to put away the USB cables.
__________________
Pilot 5K->Palm IIIc->Tungsten T/T2->Treo 650/680 -> Pre+ (1.4.5 & Uberkernel) Last edited by swieder; 06/10/2010 at 01:45 PM. |
06/10/2010, 11:05 PM
|
#9 (permalink) |
|
Member
![]() Join Date: May 2010
Posts: 316
Thanks: 82
Thanked 130 Times in 49 Posts
|
This is why you use the SSH key, which provides 2048-bit encryption and is far more secure than a manual password. For someone else to connect they would need a copy of your private key and know how you were using it.
I had originally included passwords in the setup instructions, but since FileZilla doesn't support them, and in fact strips them when converting your private key, this was just a waste of time. I removed the relevant steps to simplify the procedure. |
06/12/2010, 03:39 AM
|
#13 (permalink) | |
|
Member
![]() Join Date: May 2010
Posts: 316
Thanks: 82
Thanked 130 Times in 49 Posts
|
Quote:
Note that on the Mac version the settings are actually accessed via FileZilla > Preferences now. |
|
06/12/2010, 05:48 AM
|
#15 (permalink) |
|
Member
![]() Join Date: Oct 2009
Posts: 72
Thanks: 4
Thanked 8 Times in 5 Posts
|
Hmmm... pretty sure I've followed the instructions exactly. Here's what I get in FileZilla:
---------------------------------- Status: Connecting to 192.111.1.1... Response: fzSftp started Command: keyfile "C:\Documents and Settings\Joe\My Documents\applications\Pre Apps\myprekey.ppk" Command: open "root@192.111.1.1" 22 Error: Connection timed out Error: Could not connect to server ------------------------------------ That's not my actual IP address (though of course I'm using the correct one in FileZilla)... otherwise, that's exactly the error. UPDATE: I restarted in Dev mode and now it works great. I'm guessing it doesn't have anything to do with dev mode... probably just needed the restart. Thanks for the instructions! Thanks, Joe Last edited by Stearmandriver; 06/12/2010 at 05:59 AM. Reason: Update |
06/12/2010, 10:03 AM
|
#16 (permalink) |
|
Member
![]() Join Date: Feb 2005
Posts: 1,970
Thanks: 241
Thanked 67 Times in 61 Posts
|
Is there anything special that I need to do to allow two different computers (work and home) to access my Pre? Can I use the same key or do I need a separate one for each computer?
__________________
Pilot 5K->Palm IIIc->Tungsten T/T2->Treo 650/680 -> Pre+ (1.4.5 & Uberkernel) |
06/12/2010, 02:19 PM
|
#17 (permalink) | |
|
Member
![]() Join Date: May 2010
Posts: 316
Thanks: 82
Thanked 130 Times in 49 Posts
|
Quote:
You'll probably need to update the IP address and local folder for the new site, but everything else should work out of the box. |
|
06/14/2010, 06:00 AM
|
#19 (permalink) |
|
Member
![]() Join Date: May 2010
Posts: 22
Thanks: 2
Thanked 1 Time in 1 Post
|
"Connection closed by server with exitcode 127" *sop* what have i done wrong?
btw anybody noticed, there's no underscore on a german pre plus? funny to type that link in terminal with no underscore used webOSQI after all.
|
06/16/2010, 03:40 PM
|
#20 (permalink) |
|
Member
![]() Join Date: May 2010
Posts: 22
Thanks: 2
Thanked 1 Time in 1 Post
|
please, i'm driving crazy with this. i am lost when it comes to linux. another version of filezilla told me, it can't start the sftp server. and executing sftp on the device says it can't find /usr/libexec/sftp-server.
i would guess the sftp server is not starting up? ssh seems to work, as i can connect with putty to my device. edit: could a pdk ssh server interfere with the openssh one? i installed the pdk package on my phone Last edited by just_jo; 06/16/2010 at 03:55 PM. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



