webOS Nation Forums >  webOS smartphones (Pre, Pixi, Veer) >  webOS tips, information, and resources > FTP access to your Pre using FileZilla
FTP access to your Pre using FileZilla

  Reply
 
LinkBack Thread Tools Display Modes
Old 09/09/2010, 10:52 PM   #101 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Quote:
Originally Posted by troymiller View Post
Well that took care of it for me. Also I would make a note the Internalz could be used to copy the files around if any users are not comfortable with that part.

Also, it looks like the keys stay around after an uninstall. Saved me a step.

Thanks!
Yes, that is intentional.

When OpenSSH is correctly installed using Preware, it is impervious to webOS OTA updates, and continues working afterwards without anything needing to be done.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
rwhitby is offline   Reply With Quote
Old 09/09/2010, 11:04 PM   #102 (permalink)
Member
 
rlanza1054's Avatar
 
Join Date: Jan 2005
Location: Astoria Queens, NYC
Posts: 1,823
Likes Received: 1
Thanks: 201
Thanked 154 Times in 118 Posts
Default

I'm sorry guys, I am running into yet another problem (seems lately I am having a harder time doing these Unix commands).

I can't seem to get the 'sudo' command to work.

Example: when i type in 'sudo mount -o remount,rw'

I'm getting 'sudo not found'?

Seems from Terminal installed, that it is not finding the sudo command?

Anyone know why this is happening to me?

Thanks!

Rob
__________________
Robert L
Astoria Queens, N.Y.C
- Palm Pre (Sprint) - formally Palm Treo 650
Version 1.4.1.1
Sprint Configuration 2.3
Model: P100EWW
Hardware Version: A
Firmware: CC1.4(510)

rlanza1054 is offline   Reply With Quote
Old 09/09/2010, 11:11 PM   #103 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Quote:
Originally Posted by rlanza1054 View Post
I'm sorry guys, I am running into yet another problem (seems lately I am having a harder time doing these Unix commands).

I can't seem to get the 'sudo' command to work.

Example: when i type in 'sudo mount -o remount,rw'

I'm getting 'sudo not found'?

Seems from Terminal installed, that it is not finding the sudo command?

Anyone know why this is happening to me?

Thanks!

Rob
The instructions for SSH access from WebOS Internals do not include sudo - we use root login directly using ssh keys.

What obsolete instructions are you following? You should be reading the homepage link from the OpenSSH package in Preware.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
rwhitby is offline   Reply With Quote
Old 09/09/2010, 11:25 PM   #104 (permalink)
Member
 
rlanza1054's Avatar
 
Join Date: Jan 2005
Location: Astoria Queens, NYC
Posts: 1,823
Likes Received: 1
Thanks: 201
Thanked 154 Times in 118 Posts
Default

Quote:
Originally Posted by rwhitby View Post
The instructions for SSH access from WebOS Internals do not include sudo - we use root login directly using ssh keys.

What obsolete instructions are you following? You should be reading the homepage link from the OpenSSH package in Preware.

-- Rod
No I has started to work on doing the security keys but went off into another direction while I was working on that.

And there was a command that we had used 'sudo mount -o remount,rw' and when I typed that in, I got the 'sudo not found'.

It had nothing to do with the OpenSSH that I was working on, I guess I wasn't clear. It's just that I had sometime tonight and was going to put sometime into getting the WinScP to work with generating the keys as the instructions listed. I got that part done without any issues.

I even got the keys copied over to my PC and generated them using 'puttygen' as WinScP said I had to do.

Then as I was setting up WinSCP with the IP address of my Pre (it is set to be static for my internal network here at home) and it asked for the user name and password.

I had always set a user name of 'preuser' and a password to go along with that.

I just wanted to set that user account to set to 'superuser'.

So I started to do a 'sudo -i preuser' but then I ran into the issue of sudo not found.

Then I ran the usual command that is in WebOS Internals on how to mount the device as read/write so you can edit files and such. So when I tried the 'sudo mount -o remount,rw' it said again that sudo is not found.

That's why the question.

So what is going on here? Did something get changed or removed?

Thanks!

Rob

UPDATE: I have managed to make WinSCP work, that part is going OK and I'm back with it. I do want to give Filezilla a try as well!
__________________
Robert L
Astoria Queens, N.Y.C
- Palm Pre (Sprint) - formally Palm Treo 650
Version 1.4.1.1
Sprint Configuration 2.3
Model: P100EWW
Hardware Version: A
Firmware: CC1.4(510)


Last edited by rlanza1054; 09/09/2010 at 11:36 PM. Reason: grammer spelling and updated!
rlanza1054 is offline   Reply With Quote
Old 09/09/2010, 11:45 PM   #105 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Quote:
Originally Posted by rlanza1054 View Post
No I has started to work on doing the security keys but went off into another direction while I was working on that.

And there was a command that we had used 'sudo mount -o remount,rw' and when I typed that in, I got the 'sudo not found'.

It had nothing to do with the OpenSSH that I was working on, I guess I wasn't clear. It's just that I had sometime tonight and was going to put sometime into getting the WinScP to work with generating the keys as the instructions listed. I got that part done without any issues.

I even got the keys copied over to my PC and generated them using 'puttygen' as WinScP said I had to do.

Then as I was setting up WinSCP with the IP address of my Pre (it is set to be static for my internal network here at home) and it asked for the user name and password.

I had always set a user name of 'preuser' and a password to go along with that.

I just wanted to set that user account to set to 'superuser'.

So I started to do a 'sudo -i preuser' but then I ran into the issue of sudo not found.

Then I ran the usual command that is in WebOS Internals on how to mount the device as read/write so you can edit files and such. So when I tried the 'sudo mount -o remount,rw' it said again that sudo is not found.

That's why the question.

So what is going on here? Did something get changed or removed?

Thanks!

Rob

UPDATE: I have managed to make WinSCP work, that part is going OK and I'm back with it. I do want to give Filezilla a try as well!
When you log in as root, you never need to use the sudo command.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
rwhitby is offline   Reply With Quote
Old 09/12/2010, 09:01 AM   #106 (permalink)
Member
 
Join Date: Feb 2010
Posts: 37
Likes Received: 0
Thanks: 5
Thanked 1 Time in 1 Post
Default

I followed your instructions thru Part 3, but after doing the "mv" and "cp" commands, I could not locate the "id_rsa" file. Is there anything I missed?
precal.hdh is offline   Reply With Quote
Old 09/12/2010, 09:06 AM   #107 (permalink)
Member
 
Join Date: Feb 2010
Posts: 37
Likes Received: 0
Thanks: 5
Thanked 1 Time in 1 Post
Default

While using Terminal, the keygen program prompts as "Enter file in which to save this key (/home/root/ .ssh/id_rsa):

I pressed return key. Is this correct?
precal.hdh is offline   Reply With Quote
Old 09/12/2010, 09:12 AM   #108 (permalink)
Member
 
Join Date: Sep 2009
Location: Miami, FL
Posts: 640
Likes Received: 2
Thanks: 206
Thanked 4,294,967,295 Times in 40 Posts
Default

yes that is correct. Press enter @ all steps to accept the default name and to not set a password for user root. Once you move the file, look for it in media/internals
__________________



Sprint Pre-
UK Screenstate 500/1ghz
Mode Switcher--RULES !!!
Advanced preferences by Sconix
Lots of patches
NABRIL15 is offline   Reply With Quote
Old 09/12/2010, 09:56 AM   #109 (permalink)
Member
 
Join Date: Feb 2010
Posts: 37
Likes Received: 0
Thanks: 5
Thanked 1 Time in 1 Post
Default

Thanks for your quick reply. The commands worked the 2nd time around. I have rebooted 2 or 3 times, but still get the timeout when I connect. To get my IP address on the Pre, I used WhatsmyIP.com.

DoI I need the palm "mobile hotspot" program to be running?
precal.hdh is offline   Reply With Quote
Old 09/12/2010, 10:02 AM   #110 (permalink)
Member
 
Join Date: Sep 2009
Location: Miami, FL
Posts: 640
Likes Received: 2
Thanks: 206
Thanked 4,294,967,295 Times in 40 Posts
Default

no need for mobile hotspot. Get the ip addeess from your phone's wifi preferences.

are you using filezilla or winscp? Make sure that you are using that key you generated otherwise you will never connect.
NABRIL15 is offline   Reply With Quote
Old 09/12/2010, 12:52 PM   #111 (permalink)
Member
 
Join Date: May 2010
Posts: 316
Likes Received: 0
Thanks: 82
Thanked 132 Times in 49 Posts
Default

Quote:
Originally Posted by precal.hdh View Post
To get my IP address on the Pre, I used WhatsmyIP.com.
That will return your external IP address; useful if you're connecting from outside your network, but in this case you actually want to connect to your local network. The internal IP address will usually be different.

As NABRIL15 mentions, you can pull your phone's IP address from the Wi-Fi app (or the system menu). Just tap the name of your current Wi-Fi connection for details. The first set of numbers is your phone's internal IP address.
zParticle is offline   Reply With Quote
Old 09/13/2010, 08:07 AM   #112 (permalink)
Member
 
Join Date: Feb 2010
Posts: 37
Likes Received: 0
Thanks: 5
Thanked 1 Time in 1 Post
Default

Thanks for your help. I finally got the FTP program working. Pretty slick! I think I was using the wrong IP address.
precal.hdh is offline   Reply With Quote
Old 09/14/2010, 03:54 PM   #113 (permalink)
Member
 
Join Date: May 2010
Posts: 4
Likes Received: 0
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

I'm trying to type the commands in Terminal, but I'm using a French Pré+, with an AZERTY keayboard. And It's silly, but I don't know how to have the '_' character !
Does someone know ?
Thanks
badln is offline   Reply With Quote
Thanked By: Michkoopt
Old 09/14/2010, 04:36 PM   #114 (permalink)
Member
 
Join Date: May 2010
Posts: 316
Likes Received: 0
Thanks: 82
Thanked 132 Times in 49 Posts
Default

The move (mv) and copy (cp) commands can also be performed via Internalz, as troymiller mentions above. Alternatively, you could try the virtual keyboard.
zParticle is offline   Reply With Quote
Old 09/16/2010, 01:40 AM   #115 (permalink)
Member
 
Join Date: May 2010
Posts: 4
Likes Received: 0
Thanks: 0
Thanked 1 Time in 1 Post
Default

Many thanks for the tip, I used Internalz to move and copy files. I also had to create manually the 'authorized_keys' directory.
But it doesn't work in Filezilla. I have the error:
Réponse : fzSftp started
Commande : keyfile "C:\Program Files\FileZilla\idrsapalm.ppk"
Commande : open "root@192.168.0.2" 22
Erreur : Disconnected: No supported authentication methods available

Reading the post, I tried several times to regenerate the id_rsa, but it still doesn't work. I'm using Filezilla 3.3.4.1. Did I miss something ?
badln is offline   Reply With Quote
Old 09/16/2010, 01:55 AM   #116 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Quote:
Originally Posted by badln View Post
Many thanks for the tip, I used Internalz to move and copy files. I also had to create manually the 'authorized_keys' directory.
But it doesn't work in Filezilla. I have the error:
Réponse : fzSftp started
Commande : keyfile "C:\Program Files\FileZilla\idrsapalm.ppk"
Commande : open "root@192.168.0.2" 22
Erreur : Disconnected: No supported authentication methods available

Reading the post, I tried several times to regenerate the id_rsa, but it still doesn't work. I'm using Filezilla 3.3.4.1. Did I miss something ?
authorized_keys is a file, not a directory.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
rwhitby is offline   Reply With Quote
Old 09/16/2010, 12:41 PM   #117 (permalink)
Member
 
Join Date: May 2010
Posts: 4
Likes Received: 0
Thanks: 0
Thanked 1 Time in 1 Post
Default

So I obviously missed something, and really need to practice my linux/unix ;-)
It works fine now, many thanks Rod !
badln is offline   Reply With Quote
Old 09/18/2010, 11:20 AM   #118 (permalink)
Member
 
Jason Black's Avatar
 
Join Date: Dec 2009
Posts: 2,226
Likes Received: 2
Thanks: 154
Thanked 198 Times in 160 Posts
Default

i set up this and WiFi Media sync!
__________________
If you want to buy a Palm Pre is great condition. Here's your chance.

http://forums.precentral.net/showthr...91#post2782191
Jason Black is offline   Reply With Quote
Old 09/26/2010, 07:00 PM   #119 (permalink)
Member
 
Join Date: Jul 2009
Posts: 31
Likes Received: 0
Thanks: 14
Thanked 2 Times in 2 Posts
Default

100x Thanks!!! I have been looking for a week for a guide on how to do this, and yours was the first one all in one place! Thanks a ton!
Bryce14 is offline   Reply With Quote
Old 09/27/2010, 08:17 AM   #120 (permalink)
Homebrew Developer
 
Join Date: May 2010
Location: Germany
Posts: 519
Likes Received: 22
Thanks: 44
Thanked 130 Times in 76 Posts
Default

How can I setup (S)FTP without using those key-files, only password protection (like FTP on most web servers)?
pcworld is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0