Thursday, December 22, 2005

step-by-step sshd on the Nokia 770

  1. Install XTerm on the 770: http://770.fs-security.com/xterm/
  2. Install dropbear-key on the 770: http://nohar.nerim.net/n770/
  3. Install dropbear-server on the 770. (same URL above)
  4. Generate keys on your linux workstation: ssh-keygen -t rsa
  5. Copy ~/.ssh/id_rsa.pub from your workstation to the 770's memory card
  6. Once on the card run the following in the XTerm on the 770: cp /media/mmc1/authorized_keys.txt ~/.ssh/authorized_keys
  7. Set permissions:
    • chmod 400 ~/.ssh/authorized_keys
    • chmod 700 ~/.ssh
  8. Make a shortcut to make life easier:
    • ln -s /var/lib/install/etc/init.d/dropbear-server ~/sshd
  9. Start it up
    • ~/sshd start
  10. Log in from your workstation:
    • ssh -l user -p 2222 your.nokia.ip.address

This is basically a re-write of this: http://maemo.org/maemowiki/InstallSsh
I'm a little upset root doesn't work out of the box. Anyone who installs xterm on purpose should want root access on purpose.

0 comments: