Old Meets New: Using Mutt on the Android G1
Securing Mutt with SSH on the Android G1
I've talked before about SSH for mobile devices, since then I've been using my G1 a lot. I prefer to access my email via Mutt and SSH (I know, a little old-school ...): I can do this via ConnectBot, but I wanted something a bit more direct. Happily, Lauren Weinstein has written an adapted version of ConnectBot to simplify this. (Uninstall your existing version before installing Lauren's version.)
Next, set up public key auth via the 'manage pubkeys' menu. Using a passphrase is more secure, but it also presents more hassle as you'll have to flip the keyboard out to enter it every so often. The 'copy public key' option on the long-click menu copies the public key to the clipboard, from where you can get it to ~/.ssh/authorised_keys2 on your server.
Then set up a single-touch shortcut ('Add'->'Shortcuts' menu) direct to the server from the home screen.
Finally, Lauren's kindly made available a set of keybindings to add to your ~/.muttrc, so you can do basic operations without opening the keyboard. Send ESC with two presses of the joystick, and Ctrl with one; you can also sent Ctrl-A n (to switch screens) with the picture button. These are the bits from it that I'm using so far:
macro index "" macro index "n" macro index ":set delete=yesn:set delete=ask-yesn" macro index "" macro pager "" macro pager "n" macro pager ":set delete=yesn:set delete=ask-yesn" macro pager ""
All incredibly useful! Many thanks to Lauren for the hard work on this.
Article courtesy of Serverwatch