Saturday, April 28, 2007

Nokia N800 - SSH port forwarding and Cingular setup

I got a new toy, Nokia N800 Internet Tablet
http://en.wikipedia.org/wiki/Nokia_N800
Now I can have the cumbersome, hour draining, joy of on linux on the go. I couldn't be happier!

Setting up access to my corporate email:
Company email setup : My company has IMAP and SMTP access but not available outside the firewall. They do have a ssh server though to get terminal login access, but required key based login, no passwords. (/etc/ssh_config PasswordAuthentication: no)
N800 setup :
Step 1: I installed dropbear ssh client and server on N800
Step 2: got root by logging w/root password "rootme".
Step 3: Immediately set root password to **** and user password to **** ('user' is the name of the default user on the N800 and you have to set it by typing passwd user as root)
Step 4: Create dropbear private/public key pair
  dropbearkey -t rsa -f ~/.ssh/id_rsa.db

NOTE: I tried to convert my existing openssh key to dropbear, but dropbearconvert didn't
understand encrypted private keys and so i decided to create a new private key. In hindsight, i actually think this is a better idea in case my N800 is compromised/lost.

Step 5: Copy public key to ~/.ssh/authorized_keys on company ssh server. Public key was sent to
stdout drop key creation

Step 6: Write a script using vi on N800 to tunnel IMAP and SMTP ports by writing ~/mailports script on N800
#!/bin/sh
echo "Opening ports 14300 for IMAP and 2500 for SMTP..."
ssh -i ~/.ssh/id_rsa.db -l dhubler -L 14300:localhost:143 -L 2500:localhost:25 mail.pingtel.com cat -

run "chmod +x ~/mailports" and run script

Step 7: Configure default email client on N800 ossoemail
Type localhost for IMAP4 and SMTP servers, then last page of email account wizard, hit advanced button and change IMAP and SMTP ports to 14300 and 2500 respectively

Step 8: From ossoemail menu run "Message/Send & receive"

Getting unlimited wireless access through your cellphone from cingular for $39.95/month
I think it's a deal, momma not happy about it. So far, speed ain't great.
No matter how much you think upgrading you MEdia package on cingular is going to let you use for phone as a bluetooth modem, it won't. My Nokia 6102i kept giving "Subscribe to GPRS first" each time I tried to connect from my Nokia N800. You need to get the PDA Connect plane from cingular. The N800 is not a "authorized device", so don't tell them you have that. Find out what ones the support and say you have one of those. Don't ask me how I got around this :). The following connection parameters for me worked, I need to find out which ones are effective, but I hesitate to alter them to find out as it took me so long to get this working

6102i settings
Configuration/Personal configuration settings/ISP.CINGULAR
Account name: ISP.CINGULAR
Data bearer: Packet data
Packet data access point: internet
Auth Type: Normal
Username: ISP@CINGULARGPRS.COM
Password: CINGULAR1 (i think)

n800 settings
Connection type: Packet data
Access point name: WAP.CINGULAR
Dial-up number: *99***1#
Username: WAP@CINGULARGPRS.COM
Password: CINGULAR1 (i think)

No comments: