How to SSH into Your Palm Pre!
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:
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.)
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)
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:
- WebOS-Internals.Org – You can refer to this site for more information on how to install optware and details of it. There’s also other ways to set up dynamic DNS here.
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.











August 21st, 2009 at 10:51 pm
[...] Home About RSS Follow @PalmPreHacks on Twitter « How to SSH into Your Palm Pre! [...]
August 22nd, 2009 at 12:50 pm
[...] 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 [...]
August 23rd, 2009 at 1:15 am
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!
August 25th, 2009 at 2:14 am
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
August 26th, 2009 at 9:09 am
same here access denied. how do i change the password?
August 26th, 2009 at 9:40 am
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
August 26th, 2009 at 10:20 am
i did it and now says “passwd : cannot update password file /etc/password
August 26th, 2009 at 10:22 pm
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.
August 26th, 2009 at 10:35 pm
i reinstalled everything again changing my user name and now it works
August 27th, 2009 at 10:47 pm
i can ssh using my ip but not my domain says network error: connection refused
August 28th, 2009 at 12:02 pm
Did you connect your phone as “Just Charge”?
August 29th, 2009 at 3:42 pm
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
August 29th, 2009 at 8:04 pm
how do I install My Tether from my laptop to my Pre? Step-by-step.
August 31st, 2009 at 1:42 am
I am having the problem of the “Network error: connection refused” what shoul i do
August 31st, 2009 at 1:43 am
I am having one of “network time out”
August 31st, 2009 at 7:58 pm
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.
August 31st, 2009 at 9:51 pm
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
September 1st, 2009 at 12:59 am
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 ?
September 1st, 2009 at 1:37 am
type sudo before the command, my bad, forgot to put that.
– Sent from my Palm Pre
September 1st, 2009 at 1:42 am
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
September 1st, 2009 at 2:19 am
ssh client, i am stuck on that step. Where is this ssh client i need to type my ip into?
September 1st, 2009 at 3:34 am
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
September 1st, 2009 at 3:38 am
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.
September 1st, 2009 at 4:15 am
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?
September 1st, 2009 at 4:20 am
Sorry i did a weird edit, look at the post above yours. thanks so much for the help
September 1st, 2009 at 4:37 am
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
September 1st, 2009 at 11:35 am
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.
September 1st, 2009 at 1:35 pm
Hmmm… can you ping your phone??? Have u set it up via DDNS?
September 1st, 2009 at 6:28 pm
No i only got to step 6 of the ssh.
September 1st, 2009 at 6:47 pm
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.
September 1st, 2009 at 11:21 pm
Doesn't work when it says 1x?
September 1st, 2009 at 11:30 pm
It should but it'd be very very slow, especially if you don't have full bars.
September 2nd, 2009 at 9:32 am
that means that in Setup Dynamic DNS step 3 i have to use “Sudo mount -o remount,rw /” instead ?
September 2nd, 2009 at 12:48 pm
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)
September 2nd, 2009 at 9:11 pm
Yes, please add “sudo” before any commands. When I was writing this, it was like 3AM.
September 2nd, 2009 at 9:14 pm
Try adding “sudo” before the command, my apologies, I forgot to add “sudo” on some of the commands.
September 3rd, 2009 at 9:11 am
now I got the following: “ipkg_conf_init:failed to create temporary directory '(null)':permission denied
September 3rd, 2009 at 11:07 am
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 …
September 3rd, 2009 at 11:35 am
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
September 3rd, 2009 at 11:25 pm
add “sudo” before the command and make sure your filesystem is writable.
September 3rd, 2009 at 11:26 pm
If you see root@castle then that is SSH.
September 3rd, 2009 at 11:27 pm
Hmm… that is strange… Are you on Sprint? I heard Bell is actually putting their Pres on private proxies which could affect this…
September 3rd, 2009 at 11:27 pm
Hmm… that is strange… Are you on Sprint? I heard Bell is actually putting their Pres on private proxies which could affect this…
September 3rd, 2009 at 11:27 pm
Hmm… that is strange… Are you on Sprint? I heard Bell is actually putting their Pres on private proxies which could affect this…
September 4th, 2009 at 10:33 am
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.
September 5th, 2009 at 7:47 am
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 ” .
September 5th, 2009 at 8:29 am
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.
September 6th, 2009 at 12:17 pm
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
September 11th, 2009 at 7:50 pm
[...] 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) [...]
September 16th, 2009 at 6:57 am
[...] 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. [...]
September 17th, 2009 at 6:35 pm
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
September 23rd, 2009 at 5:55 am
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?
September 27th, 2009 at 7:40 pm
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.
September 27th, 2009 at 7:51 pm
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.
September 27th, 2009 at 8:42 pm
can i install apps i'm developing on it like that?
September 28th, 2009 at 12:01 am
not sure, I haven't tried developing any GUI apps, just behind the linux so….
September 28th, 2009 at 10:29 pm
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?
September 29th, 2009 at 3:41 am
Hmm…. try SSH into your own phone while connected via USB via localhost and double check your SSH and login are working.
September 29th, 2009 at 12:55 pm
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.
September 29th, 2009 at 4:04 pm
I found the answer. To use SSH over EVDO you must alter the iptables rules.
September 29th, 2009 at 4:27 pm
Check your firewall, perhaps it's blocked? Hmm…
September 29th, 2009 at 4:29 pm
Hmmm… I didn't have to do that but if that works I guess it's viable option.
September 29th, 2009 at 11:03 pm
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”
September 30th, 2009 at 12:10 pm
can you explain how you did that? some of us are having the same problems that you had.
September 30th, 2009 at 7:35 pm
Here:
http://palmpre-hacks.com/palm-pre-hacks/how-to-...
October 2nd, 2009 at 7:35 pm
When I enter:
mount -o remount,rw /
into my sh session is says
mount: permission denied. (are you root?)
How do I fix this?
October 2nd, 2009 at 8:13 pm
step 7 won't get me out of editing the conf file
October 3rd, 2009 at 2:41 pm
oh add sudo, “sudo mount -o remount, rw /”
October 3rd, 2009 at 8:35 pm
Has anybody done this for WebOS 1.2? I'm getting the error message “Failed to create the local clone”
October 4th, 2009 at 12:34 am
Im in the same boat I cant figure out how to get out of the vi editor!! someone please help!
October 5th, 2009 at 8:15 am
you have to hit esc first then :wq
October 6th, 2009 at 3:45 am
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.
October 13th, 2009 at 11:11 pm
Yea same here I get the same error as the guy above “Error parsing file '/opt/etc/ipupdate.conf'”
October 14th, 2009 at 9:39 am
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
October 14th, 2009 at 10:00 am
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.
October 14th, 2009 at 11:17 pm
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?
October 15th, 2009 at 1:40 am
try a strong password like tud837Qe3r
October 20th, 2009 at 11:24 am
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
October 20th, 2009 at 4:01 pm
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.
October 20th, 2009 at 4:41 pm
nevermind….got it. thanks
October 21st, 2009 at 2:57 pm
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:/#
October 21st, 2009 at 10:49 pm
can you do step by step the setup of the dyndns account
October 22nd, 2009 at 10:42 am
can you help me with the setup of the dns account
October 22nd, 2009 at 10:42 am
I cant SSH with my username, it keeps saying incorrect password and I know I am using the correct passowrd
October 23rd, 2009 at 11:44 am
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
October 23rd, 2009 at 11:49 am
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
October 25th, 2009 at 2:43 pm
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!
October 25th, 2009 at 5:53 pm
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.
October 25th, 2009 at 11:59 pm
[...] 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 [...]
October 26th, 2009 at 12:03 am
[...] 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 [...]
October 25th, 2009 at 8:45 pm
try to create a new user running the optware again cd tmp/ …..and then the quilt to update it then… send me an email
October 25th, 2009 at 9:05 pm
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
October 29th, 2009 at 1:29 am
I'm on bell and I can't SSH with EVDO. Do you know of a work around for their proxy?
October 29th, 2009 at 1:31 am
????
October 29th, 2009 at 1:34 am
Do you know if this is the same for Bell in Canada?
October 29th, 2009 at 2:44 pm
I am sure there's a way around it, you might have to establish some kind of SSH tunnel…
October 30th, 2009 at 2:15 pm
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/
October 30th, 2009 at 3:34 pm
I tried, same problem. Cannot SSH in, neither username/password combinations are recognized as valid.
October 30th, 2009 at 3:38 pm
Reinstalled, tried new username, still does not work. Ideas?
October 30th, 2009 at 3:54 pm
Ditto. Any ideas?
October 30th, 2009 at 6:49 pm
After reboot, the second username worked.
October 30th, 2009 at 6:50 pm
OK now. I set the screen refresh time to 3 minutes, and am settling for poking it every three minutes <g>
November 12th, 2009 at 12:23 am
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.
November 12th, 2009 at 12:28 am
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.
November 12th, 2009 at 6:54 pm
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.
November 14th, 2009 at 12:03 am
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?
November 17th, 2009 at 6:37 pm
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.
November 18th, 2009 at 5:45 pm
This is a great article, how about adding a little bit on getting private key authentication going and disabling logging in with a password.
November 28th, 2009 at 10:57 pm
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!
November 29th, 2009 at 3:22 pm
How do you remove optware???
November 29th, 2009 at 3:23 pm
how do you remove optware???
November 30th, 2009 at 2:17 am
[...] 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) [...]
January 5th, 2010 at 10:29 pm
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??
January 26th, 2010 at 6:36 am
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
February 4th, 2010 at 4:48 pm
So what about the other way around.
can we SSH from PALMPRE to other servers.
February 11th, 2010 at 4:56 pm
[...] 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 [...]
February 14th, 2010 at 5:56 pm
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.
February 17th, 2010 at 2:07 pm
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
March 1st, 2010 at 7:31 pm
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?
March 2nd, 2010 at 10:06 am
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..
March 2nd, 2010 at 11:36 am
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.
March 5th, 2010 at 7:13 pm
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
March 5th, 2010 at 7:17 pm
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
March 8th, 2010 at 3:59 am
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.
March 8th, 2010 at 6:34 am
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?
March 8th, 2010 at 10:56 pm
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
March 8th, 2010 at 10:57 pm
Oh, try /sbin/sh and don’t copy and paste the #! part, that’s the command prompt.
March 8th, 2010 at 11:02 pm
Seems like my SSH is still working just not my password, Might have to just reinstall using -force.
March 9th, 2010 at 3:56 am
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…
March 10th, 2010 at 2:26 pm
What network are you on? Sprint, O2, etc…etc…?
March 11th, 2010 at 6:59 am
O2 in the UK.