Synchronise Tomboy Notes via SSH
A New feature in tomboy is you can synchronise notes via SSH or WebDav. After upgrading to Ubuntu Gutsy I found there are a few things needed to do to set up SSH synchronisation.
First of all in preferences you need to change the option in addins to use SSH, WebDav is the default. Then when if you try to set up the connection to the server you will get an error advisong that the synchronisation plugin is unsupported and to ensure FUSE is set up properly.
So here's what you need to do.
1. Ensure sshfs is installed.
$ sudo apt-get install sshfs
2. ensure the fuse module is loaded. (Should already be running in ubuntu).
$ lsmod | grep fuse
If not just do the following,
$ sudo modprobe fuse
3. Add user to fuse group replacing username with whichever username you need.
$ sudo adduser username fuse
After this you may need to logout and login again.
Now you should be able to set up the connection in Tomboys preferences.
Next its time to set up authentication via SSH keys.
1. generate key, just press return to create default files choose a passphrase if you want extra security.
$ ssh-keygen -t rsa
2. Copy key to server, this will put the public key in to your home folder on the SSH server.
$ scp ~/.ssh/id_rsa.pub user@example.com:~/
3. Login in to account via SSH.
$ ssh user@example.com
4. Authorise key on server.
$ mkdir .ssh
$ cat id_rsa.pub >> .ssh/authorized_keys
$ rm id_rsa.pub
5. You may also want to set permissions on your ssh server.
$ chmod go-w ~
$ chmod 700 ~/.ssh
$ chmod 600 ~/.ssh/authorized_keys
Now if you logout you should find you can log back in by ssh without needing a password (unless you set up a passphrase when creating the key).