Grsync without password using Public Key authentication

Posted on January 26, 2007
Filed Under Maemo, N800, Tutorials |

Update:Rsync is available for 770 here.

For N800 use this repo:

repo_name = mg
repo_deb = deb http://mg.pov.lt/770 mistral user other
package = rsync

Thins you’ll need:

First you have to gain root access. In Nokia N800 it works pretty much the same as in 770. I used the ssh-method explained in Maemo wiki.

Next you have to make the keys:

Nokia-N800-51:~/.ssh# dropbearkey -t rsa -f mykey
Will output 1024 bit rsa secret key to ‘mykey’
Generating key, this may take a while…
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABA…

Fingerprint: md5 e6:a6:45:84:9d:59:9f:4a:bf:97:12:ca:56:f0:36:60

Then edit the ~/.ssh/authorized_keys in your server to something like:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQAB… username@myserver.com

Remeber to add the username@myserver.com to the end.

Then try to connect from your device to the server with the new key:

~/.ssh $ dbclient -i /user/.ssh/mykey username@myserver.com

If there is a problem with “random data”, the try this as a root in yourtablet:

mv /dev/random /dev/random-blocks
ln -s /dev/urandom /dev/random

Now to the Grsync configuration. In the source (or destination) field put: username@myserver.com:/directory and to the other field a folder in your tablet.

Next go to Advanced configuration tab end enter this to the other commands box:

-e “dbclient -i /home/user/.ssh/mykey”

Or with Open SSH (recommended)

-e “ssh -o PreferredAuthentications=publickey -i /home/user/.ssh/id_rsa_n800″

Now test your settings by pressing the icon representiang a lamp. If everything work okay, you can continue to the real stuff with the icon beside it. If you have known_hosts problems, go to the terminal and ssh you server with both use and root and save the key. Hopefully this helps your synchronization problems. I’m probably creating a crontab job for automating rsync. I’ll et back to you when I do that.

Links and other stuff:
Wee by now, everybody is confused, but here are the links for OpenSSH implementation:

Comments

One Response to “Grsync without password using Public Key authentication”

  1. Pets on February 27th, 2008 08:48

    Great post
    I agree with you 100%
    Keep it up man

    –Jaycn

Leave a Reply




*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word