How to SSH into Your Palm Pre!

by on Thursday, August 20th, 2009

The second day I got the Palm Pre, I was able to SSH into my own Palm Pre and also make it into a WiFi Router.  Of course, this is usual business for me as I manage about 30+ web servers on a daily basis.  If I see a linux machine, the first thing I want to do is SSH into it.

What is SSH?

SSH is a “Secure Shell” networking protocol that allows you to connect to a linux/unix machine via secure, encrypted channels.  In simple words, just think of telnet with secured encryption.

SSH is basically the command prompt for any linux/unix system, similar to DOS in Windows.

SSH is probably the most “powerful” command prompt in the world that allows you to do many things such as install/update/remove software and many more hacks such as installing custom scripts to “tweet” your GPS location.  (All this should be coming later so stay tuned.)  But before we can do any of that, we need to SSH into the Palm Pre.

Video:

(Download This YouTube Video using FREE FLVDirect software)

I have outlined step-by-step directions on how to SSH into your Palm Pre.  It’s simple really, you just need to install some software and you are pretty much good to go.

On the iPhone, the steps are a little more complicated as you need to install BSD subsystem in order to SSH into the iPhone.  That doesn’t really count as “real” SSH.  On the other hand, Palm Pre natively is based on Linux operating system, meaning SSH is just another feature of the Palm Pre.  (Take that iPhone users!)

Step by Steps to SSH into your Palm Pre

1. First, you will need to root into your Palm Pre by following Step A in my previous post on how to tether Palm Pre as a WiFi router. (until you reach “Here comes the fun part where you install the My Tether free version.”)  This is basically SSHing into your phone but it’s not true SSH since you need your computer connected to your Palm Pre, it’s more like terminal connection.

2. Once you are in root@castle prompt, the fun begins and we will install Optware, a set of Linux packages that include SSH and other cool Linux goodies.  By the way, this is the same package used on hacked Linksys routers, which are linux-based also.

3. At the root@castle prompt, do the following commands one by one:

cd /tmp
wget http://gitorious.org/webos-internals/bootstrap/blobs/raw/master/optware-bootstrap.sh
sh optware-bootstrap.sh
source /etc/profile.d/optware
cd /tmp
wget http://gitorious.org/webos-internals/bootstrap/blobs/raw/master/quilt-bootstrap.sh
sh quilt-bootstrap.sh

Update: Above outdated use below:

cd /tmp
wget http://gitorious.org/webos-internals/bootstrap/blobs/raw/master/optware-bootstrap-manual.sh
chmod 755 ./optware-bootstrap-manual.sh
sh optware-bootstrap-manual.sh
source /etc/profile.d/optware

During the installation, the script will ask you for a username and password, choose these carefully and WRITE THEM DOWN so you don’t forget them.  You will be using these credentials to SSH into your Palm Pre later.

Basically, you are installing optware packages onto your Palm Pre.

4. Once everything has been installed without errors, turn off the “Developer Mode” and reboot your Palm Pre.

5. Open up your browser on your Palm Pre and open up WhatIsMyIp.com, which will tell you what IP your Palm Pre is on.  (This IP address will change periodically as your Palm Pre is on a cellular network but we will show you how to setup dynamic DNS so you won’t have to do this ever again.)

howto-ssh-palm-pre-3

As you can see, my IP address of the Palm Pre as I write this blog post is 173.128.153.76.

6. Open an SSH connection in your SSH client using the IP address and port 222. (Normally SSH port is 22 but the Optware SSH uses port 222)

7. You should be able to now see myusername@castle. (my username is max so I see max@castle as shown below)

howto-ssh-palm-pre

8. You have just learned to SSH into your Palm Pre!

9. Now the real fun begins.  Who cares if you can SSH into your Palm Pre if you have to check the IP address of your phone every time you want to SSH into it?

10. There’s many ways to set up dynamic DNS on your Palm Pre so you can SSH into your phone using legible names like “mycoolphone.dynamicdns.com” but I will show you the easiest method which involves ez-ipupdate, a linux program that will update your Palm Pre’s IP address to free dynamic DNS service websites everytime your phone decides to change IP addresses.

Step by Steps to Setup Dynamic DNS for your Palm Pre

1. First, you will need to sign up with a dynamic DNS service that the ez-ipupdate supports but I highly recommend DynDns.com as it’s completely free and easy to use.

2. Second, setup a free dynamic DNS such as “mycoolpalmpre.dyndns.com” or using any of the free domains they provide.  WRITE THIS DOMAIN DOWN, WE WILL NEED IT FOR LATER.

3. Type the following command and press Enter in your castle prompt to remount the filesystem as writable so you can update it:

mount -o remount,rw /

4.Type the following lines to install ez-ipupdate:

/opt/bin/ipkg-opt install ez-ipupdate

5. Now we will need to make a new configuration file so type the following line and enter on your castle prompt:

sudo vi /opt/etc/ipupdate.conf

6. Type “i” and copy and paste the following: (Remember most SSH, paste is Shift+Ins not Ctrl+v)
(Change myusername and mypassword to your DynDNS.com username and password and change mycoolpalmpre.dyndns.com to your DynDNS.com domain name you chose.)

service-type=dyndns
user=myusername:mypassword
interface=ppp0
host=mycoolpalmpre.dyndns.com
cache-file=/opt/var/run/ez-ipupdate.cache
foreground
retrys=5

7. Then type “:wq” and press Enter.

8. Next type the following into you command line:

mkdir -p /opt/var/run
/opt/bin/ez-ipupdate -c /opt/etc/ipupdate.conf

9. The last line will test to make sure your configuration is working.   Try pinging your free dynamic DNS domain. (such as mycoolpalmpre.dyndns.com)
If you get the correct IP address for your Palm Pre (matching with the same one from WhatIsMyPalmPre.com), then you are ready to set up this dynamic DNS so it updates whenever your phone changes IP addresses.

10. Next, we will create a new file under /etc/ppp/ip-up.d, any files listed under there will get executed automatically when the phone changes IP addresses.  Type the following to edit a new file called 09update-ddns:

sudo vi /etc/ppp/ip-up.d/09update-ddns

11. Then copy and paste the following:

 #!/bin/sh
 /opt/bin/ez-ipupdate -c /opt/etc/ipupdate.conf -q > /dev/null 2>&1 || /bin/true

12. Then type “:wq” and press Enter.

13. Now type the following line to set the file executable:

chmod 755 /etc/ppp/ip-up.d/09update-ddns

14. Remount the filesystem as readonly:

mount -o remount,ro /

15. Now you are done, you should be able to SSH into your Palm Pre via your dynamic DNS such as mycoolpalmpre.dyndns.com.  Next time we will show you how to install a script that will let you know exactly where your phone is via its on-board GPS.  Just in case your Palm Pre gets lost, we can SSH into it and find out the exact location of the thief.

Final Words

The step-by-step instructions listed may look hard to understand but they are very easy to do if you follow line-by-line.  And once you have done the steps, you won’t have to ever do them again.

SSH is one of the first things you need to learn if you want to be good at Linux.

I have tested the script everywhere in San Francisco and in Texas and I can SSH into my Palm Pre from anywhere in the world via my dynamic DNS domain name. (which I can’t tell you since some hackers might try to DoS my phone.)  It’s like my Palm Pre is a web server, it now officially has a “domain name” and lives in the World Wide Web!!!

Credits and Resources

As always, I didn’t find out how to do all this myself, I used great resources like WebOS-Internals.Org and simply wrote up an easier step-by-step instructions for all you who need more detailed instructions.

Here’s additional resources you can use:

Extra Linux commands for Fun in SSH

One of the most used linux command is top.  Try entering “top” into SSH command prompt and you will see exactly what processes are running on your Palm Pre.  You will even know which processes take up the most processing power while you use the phone.

howto-ssh-palm-pre-2

Free Nexus One phones



Enter your zip code here and find out if you can qualify for 2 free Nexus One phones.

Rate

1 Star2 Stars3 Stars4 Stars5 Stars (18 votes, average: 5.00 out of 5)
Loading ... Loading ...

Tags: , ,
Categories: Palm Pre Hacks.

Related News and Resources



154 Responses to “How to SSH into Your Palm Pre!”

  1. How to Install/Run A Wordpress Blog on a Palm Pre! | Palm Pre Hacks Blog! Says:

    [...] Home About RSS Follow @PalmPreHacks on Twitter « How to SSH into Your Palm Pre! [...]

  2. How to Set Up Google GPS Tracking on your Palm Pre! | Palm Pre Hacks Blog! Says:

    [...] you will have to setup SSH and dynamic DNS on your phone so you can setup a simple HTML page that will show you the exact location of your Palm Pre via [...]

  3. donaldharris Says:

    I follow the same directions from your page and I could not ssh into my phone still. Every time I try and login with my created user it says the password is incorrect. Any idea on this? I have updated my phone so I don't know if that has something to do with it. Please help!

  4. aarontobias Says:

    everything worked great, i can SSH into it using both ip and domain, but i cant access domain from browser (im trying to do the google maps trick) please help

  5. ferchope Says:

    same here access denied. how do i change the password?

  6. zedomax Says:

    You need to set the password when you install optware. If you forgot, you will need to root to Palm via USB cable and use password reset command: passwd

  7. ferchope Says:

    i did it and now says “passwd : cannot update password file /etc/password

  8. donaldharris Says:

    I was able to change my password and still no avail. Keep in mind i have updated my phone to the latest version. Not sure if that had something to do with it.

  9. ferchope Says:

    i reinstalled everything again changing my user name and now it works

  10. ferchope Says:

    i can ssh using my ip but not my domain says network error: connection refused

  11. zedomax Says:

    Did you connect your phone as “Just Charge”?

  12. ferchope Says:

    im doing fine till step 9.i was able to ping my ip address and i got the right value.but after step 10 im doing something wrong.the problem is that is my first time with linux

  13. lalibela Says:

    how do I install My Tether from my laptop to my Pre? Step-by-step.

  14. efrommel13 Says:

    I am having the problem of the “Network error: connection refused” what shoul i do

  15. efrommel13 Says:

    I am having one of “network time out”

  16. zedomax Says:

    Try pinging your Palm Pre first using DDNS, go to command prompt in Windows computer and type “ping mydns.dyndns.com” where the domain is the dynamic DNS you set. If you get a ping, you have properly put your Palm Pre on the interwebs… otherwise something is wrong with your DDNS setup.

  17. ferchope Says:

    i tried everything to no avail.it returns ” ! ” and ” # ” symbols in step 11 as undetermined and pattern no found .i can only think that the problem is with the latest update 1.10

  18. hackerpride Says:

    Ive got a Crazy Issue where when i SSH in the and type mount -o remount,rw /

    it keeps telling me access denied are you sure you are root?.. I used telnet to access the root account and to change the password to see if i could use the root account to log in SSH using and it tells me access denied… I have no Clue how to fix this…. I cannot move to step 4because i cannot remount the filesystem as writable so i can update it… anyone have an idea ?

  19. zedomax Says:

    type sudo before the command, my bad, forgot to put that.

    – Sent from my Palm Pre

  20. hackerpride Says:

    Kick ass, thanks.. lol that was an ID10T error on my part.. I should of known that.. guess that's what a few beers will do to ya hahahaha

  21. Name Says:

    ssh client, i am stuck on that step. Where is this ssh client i need to type my ip into?

  22. Name Says:

    Edit: I got it, i'm just using putty.. I keep getting connection timed out on it, when i type in the ip address and 222. What'd i do wrong :(

  23. zedomax Says:

    You will need an SSH client like SecureCRT or Putty. Putty I heard is free, you can google them. Sorry I didn't put that in the instructions, when I was writing this, I was really tired. :)

  24. Name Says:

    haha no worries, i should have read more closely. I messed up when it asked what connection to use, i put Wi-fi so i think i needed to do evdo or w/e. so now when i type in my ip and 222 in putty, it says connection refused. How do i restart?

  25. Name Says:

    Sorry i did a weird edit, look at the post above yours. thanks so much for the help

  26. zedomax Says:

    Hmmm… try connecting again? Set the IP and port 222 and it should connect. Try resetting your phone if it should work with EDVO and you can try local IP address if you are WiFi.

    Heading to sleep now, 2:38AM here!!! STOP COMMENTING! j/k

  27. Name Says:

    Opps. sorry i put a past in the tether post instead of this one, so i double posted but i keep getting connection refused or connection timed out when using putty client.

  28. zedomax Says:

    Hmmm… can you ping your phone??? Have u set it up via DDNS?

  29. Name Says:

    No i only got to step 6 of the ssh.

  30. zedomax Says:

    Oops sorry, you should be able to connect via port 222, make sure you are not on port 22. And make sure your phone has either good EDVO or WiFi connection.

  31. Name Says:

    Doesn't work when it says 1x?

  32. zedomax Says:

    It should but it'd be very very slow, especially if you don't have full bars.

  33. ferchope Says:

    that means that in Setup Dynamic DNS step 3 i have to use “Sudo mount -o remount,rw /” instead ?

  34. tp Says:

    Hi guys, i got my pre rooted via usb, now i'm trying to set it for ssh

    i'm at root@castle

    cd /tmp
    wget http://gitorious.org/webos-internals/bootstrap/…
    sh optware-bootstrap.sh (after i run this)

    i get down to
    Starting the Dropbear SSH daemon: FAILED
    Failed to start the dropbear SSH daemon:

    i've tried to run it several times with the same error. is this why i can't ssh into my phone?

    please help if can, thanks (i've tried searching for same error, but couldn't)

  35. zedomax Says:

    Yes, please add “sudo” before any commands. When I was writing this, it was like 3AM.

  36. zedomax Says:

    Try adding “sudo” before the command, my apologies, I forgot to add “sudo” on some of the commands.

  37. ferchope Says:

    now I got the following: “ipkg_conf_init:failed to create temporary directory '(null)':permission denied

  38. Steffen Says:

    Hey yeah i cant get past step 6 on the SSH … root@castle:/tmp# that is what i have … now how do i SSH it .. where do i put the IP address …

  39. tp Says:

    i can ssh if i use wireless and with a 192…ip but when i'm on evdo i can't ssh in. i even got ddns setup successfully

  40. zedomax Says:

    add “sudo” before the command and make sure your filesystem is writable.

  41. zedomax Says:

    If you see root@castle then that is SSH.

  42. zedomax Says:

    Hmm… that is strange… Are you on Sprint? I heard Bell is actually putting their Pres on private proxies which could affect this…

  43. zedomax Says:

    Hmm… that is strange… Are you on Sprint? I heard Bell is actually putting their Pres on private proxies which could affect this…

  44. zedomax Says:

    Hmm… that is strange… Are you on Sprint? I heard Bell is actually putting their Pres on private proxies which could affect this…

  45. jhoff5876 Says:

    Total noob here wandering outside my comfort zone a bit…but hey it's the only way to learn. up to step 9. when I do the ping it come back with my cable modems ip address. Any help would be greatly appreciated.

  46. ferchope Says:

    i am stuck in step 6 the vi editor .when i type “:wq ” and press “enter” i think i should see myusername@castle again.by the way i guess it should be ” esc :wq ” instead of ” :wq ” .

  47. wtgreen Says:

    You might want to update the vi steps to include pressing 'Esc' before :wq. For those new to vi, it's a critical step that won't be obvious.

  48. Mike Says:

    Im getting the same error about the dropbear ssh daemon failed to start! i think this is the reason that putty gets timed out! Please some help me fixed this problem

  49. Wordpress auf einem Palm Pre | korbinian-pauli.de Says:

    [...] mir mal überlegen, was man damit lustiges bauen könnte. Was dagegen wirklich Sinn macht ist, das Palm Pre in einen Wifi-Router zu verwandeln. Categories: Allgemein Tags: mobile phone, Palm, smartphone Comments (2) [...]

  50. Read about gadgets » Blog Archive » Running Wordpress on a Palm Pre Says:

    [...] Here’s a detailed explanation on how to run your WordPress blog on a Palm Pre. Palm is Linux based so it should be fairly easy for someone to get the hang of this given some familiarity with the OS. You will be using Optware Lighttpd and MySQL server and will have to secure shell within the Palm Pre device. [...]

  51. valerauk Says:

    hello i have problem at the step8: /opt/bin/ez-ipupdate -c /opt/etc/ipupdate.conf
    I have:
    ez-ipupdate Version 3.0.11b7
    Copyright (C) 1998-2001 Angus Mackay.
    ioctl(SIOCGIFADDR): No such device
    Please any one help what i need to do?
    thanks

  52. Ryan Says:

    Worked like a charm! But if the phone is off I get a steady stream of system broadcast messages saying “going to sleep” “waking up” or some such. Any idea how disable those messages?

  53. tmaiaroto Says:

    cool works great. i was doing this in hopes that i could develop apps and not have my phone hooked in via usb… but i guess i need to be root and all that so i guess i have to be connected via usb afterall??

    how would one remove all of these apps that are now installed to disable the ssh over the internet? it's kinda insecure. sure i'm not terribly concerned because it's so extremely random that someone would find your phone with the 222 port open (esp w/o the dynamic dns setup) then on top of that know the username AND password… but eh..I don't know how much I need it.

    Was cool though.

  54. zedomax Says:

    Well, it's going to be really tough to hack via SSH, especially since your Pre is on dynamic IP and changes IP constantly. Once SSH is installed, you can forget the USB cable, the point.

  55. tmaiaroto Says:

    can i install apps i'm developing on it like that?

  56. zedomax Says:

    not sure, I haven't tried developing any GUI apps, just behind the linux so….

  57. Kevin Tran Says:

    I followed the instructions on your pages as well as the pages “Accessing Linux Using Novaterm” and “Next steps” on http://www.webos-internals.org. I am able to root into my Palm Pre, install Optware, and setup a user named kevin. However, I cannot ssh into the phone. I am on the EVDO network. I went to whatismyip.com and I got 173.126.244.211 as my IP. I then tried “ssh -p 222 kevin@173.126.244.211” but I keep getting a time out error. When I am logged in as root through the USB cable and type the same command I get prompted for a password and can log in fine. I know that dropbear is running because of the following:

    root@castle:/# ps aux | grep dropbear
    root 1113 0.0 0.2 1988 672 ? Ss 00:12 0:00 /opt/sbin/dropbear -g -F -p 222
    root 3917 0.0 0.2 2692 532 pts/0 R<+ 20:18 0:00 grep dropbear

    Is there any reason you can think of as to why I am not able to ssh into my phone from my terminal?

  58. zedomax Says:

    Hmm…. try SSH into your own phone while connected via USB via localhost and double check your SSH and login are working.

  59. Kevin Tran Says:

    I can SSH into the phone while connected by USB. The username and password work fine when I do that. I just keep getting time outs when the phone is not connected by USB.

  60. Kevin Tran Says:

    I found the answer. To use SSH over EVDO you must alter the iptables rules.

  61. zedomax Says:

    Check your firewall, perhaps it's blocked? Hmm…

  62. zedomax Says:

    Hmmm… I didn't have to do that but if that works I guess it's viable option.

  63. tserna13 Says:

    Got it setup…workin great…where's the article you mentioned?…”Next time we will show you how to install a script that will let you know exactly where your phone is via its on-board GPS. Just in case your Palm Pre gets lost, we can SSH into it and find out the exact location of the thief”

  64. canibal Says:

    can you explain how you did that? some of us are having the same problems that you had.

  65. zedomax Says:

    Here:
    http://palmpre-hacks.com/palm-pre-hacks/how-to-…

  66. Brad23M Says:

    When I enter:

    mount -o remount,rw /

    into my sh session is says

    mount: permission denied. (are you root?)

    How do I fix this?

  67. Brad23M Says:

    step 7 won't get me out of editing the conf file

  68. zedomax Says:

    oh add sudo, “sudo mount -o remount, rw /”

  69. John A. Kingman Says:

    Has anybody done this for WebOS 1.2? I'm getting the error message “Failed to create the local clone”

  70. hypocrat37 Says:

    Im in the same boat I cant figure out how to get out of the vi editor!! someone please help!

  71. ferchope Says:

    you have to hit esc first then :wq

  72. Nate Baumsteiger Says:

    First, thank you so much for all of your research and work. I've been able to SSH via: Wi-Fi, Tether, EvDO and USB Connect with no issue. The Google Maps locator works as well.

    My issue:
    8. Next type the following into you command line:

    mkdir -p /opt/var/run
    /opt/bin/ez-ipupdate -c /opt/etc/ipupdate.conf

    After running this command, I get an error for ez-ipupdate stating, “Error parsing file '/opt/etc/ipupdate.conf'” followed by a listing of acceptable ez-ipupdate operators.

    I've followed your instructions and continue to get this error.

    Thanks, again.

  73. firdaush Says:

    Yea same here I get the same error as the guy above “Error parsing file '/opt/etc/ipupdate.conf'”

  74. schegi Says:

    Great and thx a lot.
    But one more or less little problem. I am from Germany and use a UMTS Palm Pre. I followed all steps and everything goes well, but i could not connect to the palm pre via ssh i even couldnt ping it something with the ip-address is wrong i think. First of all the deamon is runing and works, if i connect to the phone via the novacom connection i could ssh via username@localhost and it works also ps -aux | grep dropbear prints out the deamon is running.
    If i just follow the dyndnssteps via the novacom connection or call ifconfig via novacom the ip addresse dyndns gets or is printed out from ifconfig differs slightly from the one i get via whatismyip.com.
    if i run whois on the ip addresses i get on both ways the one from whatismyip.com seems to be from my provider but the other one is some kind of 10.xxx.xxx.xxx highlvl address. Could it be that my Provider uses internal proxys or something lke that that hinders me from getting the right address?

    Thx Stefan

  75. schegi Says:

    ok, solution! There is no direct solution. only over wifi. German UMTS-Carriers don't hand out ip-addresses reachable from outside. So iwould only be possible via a vpn tunnel or something like that.

  76. gummer Says:

    Hi I have a question I keep trying to create a username and password but every password i try it gives me a message afterwards…i.e

    too short
    weak
    too many similar character
    too close to username

    what should I set them as?

  77. zedomax Says:

    try a strong password like tud837Qe3r

  78. Michael Says:

    Thanks Zedo for all the hard work.

    I am getting stuck at step 6 of DNS. I am getting confused on the “i” and “:wq” when I need to hit the enter key and when i need to hit esc. I am getting some very odd script after different attempts, and am not sure if its going through. I think something is wrong because when I ping my dns it times out. Thanks

  79. dark_onyx1982 Says:

    I am having password problems. How do I uninstall this to see if reinstall will fix it. I am totally new to this. Thank you for your help.

  80. Michael Says:

    nevermind….got it. thanks

  81. optimux Says:

    once you are able to ssh with user name like (max@ castle) you have to use the “sudo -i” to get into the root again like using Novacom on the USB
    as follow
    - max@castle# sudo -i ( it will ask you for your password again) then you will see
    root@castle: var/home/root# cd / and you will be in the root
    root@castle:/#

  82. optimux Says:

    can you do step by step the setup of the dyndns account

  83. optimux Says:

    can you help me with the setup of the dns account

  84. dark_onyx1982 Says:

    I cant SSH with my username, it keeps saying incorrect password and I know I am using the correct passowrd

  85. optimux Says:

    If you cant ssh is because you have problems with the installation of the Optware and bootstrap I could help you if you need it

  86. optimux Says:

    did you find up what was the problem i believe you have the same problem as i do… your palm is not sending the update to the DYndns. if somebody can helps us in this step… please step up and email me to optimux3@yahoo

  87. dark_onyx1982 Says:

    I was going to uninstall it and try reinstalling it, but I do not know the coding necessary to uninstall it. Can you help? Thank you very much!

  88. bjarnewinkler Says:

    BE SMART !

    I had already installed the Terminal program on the Pre so it was just a case of hitting the little Pre keyboard and boy does this work. I can highly recommend the trouble of typing the long commands. Before you do so you should take the time and visit http://www.tiny.cc/ it will save lots of typos.

  89. App Request: WiFileMgr. - PreCentral Forums Says:

    [...] frustration gets to you! ==> I my case I selected to remove the dropbear program and then go to How to SSH into Your Palm Pre! | Palm Pre Hacks Blog! where there are instruction on how to SSH into your Palm Pre. I had already installed the Terminal [...]

  90. Pre Wifi File Manager - Page 2 - PreCentral Forums Says:

    [...] frustration gets to you! ==> I my case I selected to remove the dropbear program and then go to How to SSH into Your Palm Pre! | Palm Pre Hacks Blog! where there are instruction on how to SSH into your Palm Pre. I had already installed the Terminal [...]

  91. optimux Says:

    try to create a new user running the optware again cd tmp/ …..and then the quilt to update it then… send me an email

  92. optimux Says:

    how do you fix the error “UNABLE TO WRITE CACHE ” and ip address should i use when im setting MY DYNDNS if my ip is dynamic and keep changing. how it will take the settings of my ez ipupdate

  93. NiceSocks Says:

    I'm on bell and I can't SSH with EVDO. Do you know of a work around for their proxy?

  94. NiceSocks Says:

    ????

  95. NiceSocks Says:

    Do you know if this is the same for Bell in Canada?

  96. zedomax Says:

    I am sure there's a way around it, you might have to establish some kind of SSH tunnel…

  97. schegi Says:

    no, i dont know but the easiest way to find out would be to connect via novacom and call ifconfig and to compare this ip to the one you get from whatismyip.com or such a site. Other way ask your provider.

    Disqus schrieb:

    NiceSocks (unregistered) wrote, in response to schegi:

    Do you know if this is the same for Bell in Canada?

    Link to comment: http://disq.us/2lgd6

    —–

    Options: Respond in the body to post a reply comment.

    To turn off notifications, go to: http://disqus.com/account/notifications/

  98. neilfleming Says:

    I tried, same problem. Cannot SSH in, neither username/password combinations are recognized as valid.

  99. neilfleming Says:

    Reinstalled, tried new username, still does not work. Ideas?

  100. neilfleming Says:

    Ditto. Any ideas?

  101. neilfleming Says:

    After reboot, the second username worked.

  102. neilfleming Says:

    OK now. I set the screen refresh time to 3 minutes, and am settling for poking it every three minutes <g>

  103. nullr Says:

    This tutorial is great for SSHing into the pre but does not show out. Until today I was clueless until I remembered it was linux based so I tried the ssh command and IT WORKED!!!! Now using the command app as We have full encrypted tunneling on the pre as long as the app is open thus keeping the tunnel open. I can put together a tutorial for both Linux(ubuntu the rest should be close)/windows but how can I get it on the site? Im sure this will help users greatly.

  104. nullr Says:

    Now that I read it it sounds a bit ambiguous and poorly worded. You can ssh from the pre to your computer WITH tunneling. In essence your pre be on the same LAN (with tunneling) as your computer so the only port needed to forward is the ssh one and the rest can be tunneled. This is not only safer because your LAN has only 1 forwarded port (SSH) and the rest are tunneled but everything is encrypted as well so its way safer.

  105. oreocreaming Says:

    ok, first command “please paste the contents of /tmp/optware-bootstrap.sh.log to http://webos.pastebin.com/ and seek help in the ic channel #webos-internals.

  106. klaud Says:

    Great blog tutorial. Got DDNS working and updating. I can ping my dyndns name and it translates that IP correctly but all Requests time out. Any hints? Could it be that I put a password for root?

  107. dark_onyx1982 Says:

    can you tell me what you did? I I got past #6 on the SHH, not I am stuck with the same problem you have on #6 of DNS. Keep in mind i dont know anythign about this coding and and doing what i see here. Thank you.

  108. Genemcsween Says:

    This is a great article, how about adding a little bit on getting private key authentication going and disabling logging in with a password.

  109. Name Says:

    Thanks for your detailed and clear instructions. I was able to do everything in this post except mounting the file system as readonly.

    sudo mount -o remount,ro /
    sudo cp test.txt test1.txt
    ls -l will show test1.txt –> the file system is not readonly by the mount command

    Also, supposedly, rebooting the Pre will put the filesystem back into readonly mode.

    sudo /sbin/reboot
    sudo cp test.txt test2.txt
    ls -l will also show test2.txt –> the file system is not readonly upon reboot

    Any help is appreciated!

  110. tony2485 Says:

    How do you remove optware???

  111. tony2485 Says:

    how do you remove optware???

  112. Pre Wifi File Manager - Page 3 - PreCentral Forums Says:

    [...] and since I could not find a solution I removed all that stuff and did the installation found at How to SSH into Your Palm Pre! | Palm Pre Hacks Blog! (also see my notes on the lower part of page two of this post found at Pre Wifi File Manager) [...]

  113. jamar Says:

    when i am copying and pasting the novacom t open (thing whatever it says) the message i get after that is unable to find device….what am i doing wrong??

  114. kiu Says:

    When I entered the password, it said my password is too weak then I entered another one. And then it said the password has not changed.
    When I try both passwords to login, both are invalid……what can I do?
    Thanks in advance

  115. sit Says:

    So what about the other way around.

    can we SSH from PALMPRE to other servers.

  116. Pre Wifi File Manager - Page 4 - PreCentral Forums Says:

    [...] I can WIFI transfer files without the basic knowledge of linux. I just follow the instruction from How to SSH into Your Palm Pre! | Palm Pre Hacks Blog! ie How to SSH into your palm. I have successfully follow the instruction but at the point of [...]

  117. Ish Says:

    Just wanted to share a few things that helped me get the Dynamic DNS to work for me:

    1) On step 6, the “i” that you type before copy/pasting the commands in stands for input and it allows you to type something into the vi thingy. Once you do copy/paste the vi commands in this step you actually have to hit “ESC” in order get out of the input mode and back at the command line; otherwise the “:wq” from step 7 will not actually save and exit (which is what the “:wq” stands for), instead it will just input :wq in the config and do nothing else. After a few tries, I just ended up saving the config that I copied and pasted by using the save command (“:w”) and then exiting with an exclamation mark to override something (“:q!”), then to double check that it indeed saved properly you can redo step 5 to open up the config and make sure everything is there.

    2) Once I got through to step 9, where you should ping the address or dns, I got no response instead getting “request time out”. However, I stuck to it and with a little assistance from a more experienced linux friend (I’m such a noob) we completed all the steps and I actually ssh’d into my pre using putty and hitting my dns instead of the ip. I even restarted my phone so that it would get a new ip, and the ssh using putty still worked when I hit my dns. Great stuff!! Hope that helps, and zedomax please correct anything I’ve misstated – your 3 or so tutorials of tethering, sshing and google maps are the most linux I’ve ever done.

  118. Brian Says:

    I’ve tried to enter all of the commands. I have What’s my IP installed, get that and enter it into the puTTY program, can get to the SSH part and able to enter my username and password just fine. I am now getting to the part where I type:
    sudo vi /opt/etc/ipupdate.conf and it automatically pulls up the stuff in step 6 and doesn’t allow me to change/modify it. I even went to What’s my IP and got the newest IP address after i restarted the pre and still it’s there.

    Yesterday, I did install optware bootstrap from Preware. Is that an issue? I’m so close to getting this done and can’t get to the last part. i have my DynDNS set up already ( a few of them) and I”m ready to roll.

    Do I need to unistall and re-start something over from scratch? PLEASE HELP

  119. Bjarne Says:

    Anybody,
    Life is good: WebOS 1.4 is out. Life can hard: Since it seems like one is losing the SSH Login (name and password).

    So first question: Is it correct that WebOS wipes out the SSH Login?

    Next question: How can you protect yourself against that?

    Final question: If you have lost your Pre SSH, how do you re-install them without having to re-install the program?

  120. rp3 Says:

    I was wondering the same thing, the 1.4 update seems to have wiped my pw? Bummer, ok will have to try to get back into the phone via the terminal I guess to reset my pw? How does one reset the pw on the pre? Does the terminal work with 1.4? I will give it a go..

  121. rp3 Says:

    Ok terminal doesn’t seem to work in 1.4, just restarts luna :) …have to hook it up to the winblows machine I guess to reset the pw… I will play with that and report back here.

  122. Joismeister Says:

    Hi guys, for those of you (like me) having trouble using “vi” in the command line, try “nano”. I’ve read that it’s primitive but to me, it’s very easy to use.

    Now, it’s not installed by default so what I did was run step 4: and replace it with nano

    sudo /opt/bin/ipkg-opt install nano

    Now, to edit:

    sudo nano /opt/etc/ipupdate.conf

    copy with mouse the data, right click into the terminal “ONCE” only and your data will be pasted off your clipboard. Make the changes you need and at the end of the editing hit “CTRL+X” simultaneously on your keyboard. This will exit you out of the editing mode and a prompt will ask you if you want to save the data. Type “Y” without the “”.

    This editor is much simpler to me than ‘vi’. At least to me.

    Good luck

  123. Joismeister Says:

    WebOS 1.4 did brake the SSH. I just went through with the whole installation steps. Don’t worry about reinstalling, it won’t reinstall if it’s already installed. (you’d have to use a switch to force a reinstall like –force).

    Follow the steps and it’ll work again. Mine did.

    Good Luck

  124. Richard Says:

    I’ve got as far as step 11, and when pasting the command:

    #!/bin/sh

    into /etc/ppp/ip-up.d/09update-ddns it tells me # and ! are ‘not implemented’. I also get a similar message about the second line.

  125. Richard Says:

    Ok, I worked around the above issue. It’s ALL working now (up to dyndns) but I can’t ping or connect through the UK’s O2 3G network. The firewall (iptables rules) allow wifi and data network incoming connections, but still no luck. Does anyone know if this is an issue with 02 in the UK blocking such things?

  126. admin Says:

    I’ve heard of issues with UK’s O2 before, somehow they are using private IP addresses I heard but they have to be using some kind of global address too. Anyways, I don’t know how to get around it but here’s some interesting read that could help:

    http://www.aspkin.com/forums/uk-ebay-paypal/8156-get-new-ip-every-20-mins-o2-broadband.html

  127. admin Says:

    Oh, try /sbin/sh and don’t copy and paste the #! part, that’s the command prompt.

  128. admin Says:

    Seems like my SSH is still working just not my password, Might have to just reinstall using -force.

  129. Richard Says:

    Thanks, completely new to linux so a steep learning curve. It’s annoying that only the very last stage doesn’t work – I can:

    SSH into the Pre over a LAN
    Successfully resolve the correct IP address using DynDNS when pinged or nslookup-ed.

    The iptables settings allow SSH connections on port 222 on all interfaces (not just eth0). But when I SSH into it over 3G (HSDPA) it just times out…

  130. admin Says:

    What network are you on? Sprint, O2, etc…etc…?

  131. Richard Says:

    O2 in the UK.

  132. Pre Wifi File Manager - Page 5 - PreCentral Forums Says:

    [...] I did not use the Dynamic DNS part of those instructions which was at lower have of the page. How to SSH into Your Palm Pre! | Palm Pre Hacks Blog! The setup will prompt you and ask for you to create a user name and password. I also downloaded [...]

  133. cryptofs folder in WinSCP? - PreCentral Forums Says:

    [...] someone help me with this? I first used this method to SSH in to my Pre. How to SSH into Your Palm Pre! | Palm Pre Hacks Blog! And through this method i create a user name and password. I can log in fine but i guess I don't [...]

  134. Internet-Notizen » Blog Archive » ClamAV auf Palm Pre installieren Says:

    [...] per SSH ein­log­gen (ssh-installation) [...]

  135. My Mom's Pre had a virus on it.... lol - Page 2 - PreCentral Forums Says:

    [...] Posted by Rudementry Can you use WinSCP with the Pre? of course… use it everyday __________________ "When there is no more room in hell, the dead will walk the earth" [...]

  136. carco Says:

    Everything good until the vi steps….

    Do I type “i” and then paste right after….I have never used vi? Can I create a text file in linux format and port it to my phone? Do i need to do the vi? I need help. Thanks,

  137. Kenny G Says:

    @ carco: you do type sudo -i then paste after you hit the spacebar one time. After you are done, hit ESC button one time and then :wq and press enter.
    _____________________

    ZEDOMAX/ADMIN: I’m having major trouble on step 8:

    8. Next type the following into you command line:

    mkdir -p /opt/var/run
    /opt/bin/ez-ipupdate -c /opt/etc/ipupdate.conf

    I tried several different ways, but I get the same result which stated “error parsing file.” Was there something different I was supposed to type in or did I make a typo when doing so? Any help from anyone is much appreciated.

    Also, if I ever get done with that step, I am uncertain how to actually ping my address… can anyone help me with that?

  138. tserna Says:

    I am trying this setup on a palm pixi…got everything setup but when i reboot the phone and it gets a new ip address the new ip doesn’t update to the web. I have to manuall run this command…mkdir -p /opt/var/run
    /opt/bin/ez-ipupdate -c /opt/etc/ipupdate.conf…then the new ip will be updated?…I have this working on a palm pre…what am i doing wrong?…any help would be appreciated.

  139. VLC media player on Palm Pre chroot Xserver method. - PreCentral Forums Says:

    [...] many have ssh installed if not terminal app will do but it will get tedious with all the typing. This is the tutorial I used a while back. Add webosinternals testing feed Preware should automatically update the feeds if not click the [...]

  140. Eric Says:

    I’m a noob and trying to figure out what a SSH client is and how to use one. Please help. Thanks.

  141. FTP access to your Pre using FileZilla - Page 3 - PreCentral Forums Says:

    [...] but I used the following procedure: How to SSH into Your Palm Pre! | Palm Pre Hacks Blog! This allows me to use Winscp, to get a window in which I can see all of the directories on WebOS [...]

  142. Easy Xserver tutorial for windows or *nix users - PreCentral Forums Says:

    [...] app from preware. I assume many have ssh installed if not terminal app or xterm will do. This is the tutorial I used for ssh a while back. SSH is not necessary feel free to skip it if you don't want it. Xorg Server + xterm Add the [...]

  143. openssh driving me insane - PreCentral Forums Says:

    [...] this point. So I did full erase from info app then doctored. Since I first got my phone I have used this page to get openssh up and running. I know theres one in preware with key and wifi only but I want [...]

  144. Robert Lanza Says:

    Does anyone know why these instructions no longer work. I’ve been using the above instructions for almost a year now and suddenly it stopped working.

    I keep getting something to the effect that the sftp-server is not running?

    I get passed the login and authentication part OK. The security key was exchanged, using WinSCP.

    So something changed and now I can’t make it work at all.

    I’m told to use the stuff in Preware, but those instructions on WebOS Internals, for me, is a little confusing.

    This method was easy and step by step (for a non-unix type geek).

    What happened?

    Rob

  145. Blocking Web Acess to teenagers - Page 2 - PreCentral Forums Says:

    [...] start at the topic which states "Step by Steps to Setup Dynamic DNS for your Palm Pre": How to SSH into Your Palm Pre! | Palm Pre Hacks Blog! Once you do that, go to the OpenDNS site here: OpenDNS > Support > Dynamic IP Info > [...]

  146. coughdrops Says:

    You are correct. I don’t know what has happened. I have used these instructions on 1.4.5 and I’ve noticed that it causes my pre to lose all sounds.. have to Dr it back.

    ************* DO NOT USE THESE INSTRUCTIONS!!!!!!*************************8

  147. Robert Lanza Says:

    Do you have a new way, that is like this used to be, as step by step.

    This site was great, in that the instructions were very step by step for us non-unix gurus, that are here.

    Thanks!

    Ro

  148. ferchope Says:

    Hey Zedomax .please we need an update .The instructions no longer work with 1.4.5

  149. Istring Says:

    please help. I tried to ssh. got to step six, but now i can no longer attach my pre to the usb port.

  150. tserna Says:

    Has this been fixed? Just got a replacement pre from sprint and would like to get ssh working again. Please reply somebody confirming this.

    Thanks

  151. ne1l Says:

    Hi, I managed to get this working sort of on my pre2, needed to replace ppp0 to eth0 and then running /opt/bin/ez-ipupdate -c /opt/etc/ipupdate.conf updates my dyndns account nicely..

    Just stuck on the auto-update part as I don’t seem to have a eth0 dir but I do have a ppp0 – creating /etc/ppp/ip-up.d/09update-ddns didn’t achieve the auto update.

    Thanks for a great tutorial

  152. ne1l Says:

    sorry my mistake.. was trying to do all of this via wifi and not the broadband device.. changing back to ppp0 and trying again.. :-)

  153. ne1l Says:

    ok auto syndns update works nicely, but I cant access the phone via the carrier (O2) ip address, any chance they block SSH 22 & 222 port connections, I cant even ping.

    via wifi I can access the phone on 22 using the dyndns web address if I change to eth0 and force dyndns update but switching back to ppp0 and after updating dyndns to carriers ip I can no longer connect?

    soo close to having it working.. :-)

  154. george Says:

    When i type in my password on putty it just closes. any suggestions?

Leave a Reply

Featured Sites from Our Network