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:
- rsync
- Grsync
- dropbear ssh
- Xterminal
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
22 Responses to “Grsync without password using Public Key authentication”
Leave a Reply
thnk you
Very usefull, thanks !
Excellent post, thanks for information.
Article very interesting, thanks for sharing.
Great post !
Very useful information, thanks for sharing.
Singulair….
Norweco singulair aerator. Singulair. Singulair no prescription. Singulair dangers….
Womens viagra….
Female viagra. Viagra vs cialis. Buy viagra. Cialis viagra. Cheap generic viagra. Order viagra online….
Augmentin r for pneumonia….
Dr koop augmentin indications amp dosage. Augmentin. Augmentin used for. Augmentin 250mg. Augmentin xr sr….
Airlines….
Alaska airlines….
Ultram medication….
Snort ultram. Ultram….
Acomplia….
Acomplia. Buy acomplia. Best pharmacy to buy acomplia. Acomplia diet drug….
Stronger than levaquin….
Pediatric levaquin antibiotic. Levaquin and dry eyes. Levaquin….
thanks for post. very nice page. see you By’S
Carisoprodol patient information….
Carisoprodol hydrocodone. Carisoprodol. Carisoprodol phentermine yellow. Buy carisoprodol….
bomba linkler tıkla gel
Levitra….
Levitra 25mg. Levitra paypal. Buy levitra online….
Viagra….
Buy viagra online. Buy viagra. Viagra for sale. Viagra pills. Viagra….
Viagra st….
Free viagra. Best price on viagra. Free viagra sample. Viagra soft without a prescription. Viagra 6 free samples. Re viagra cello. Viagra….
Cheapest cialis….
Cialis dose. Cialis review. Cialis stories. Buy cialis. Cialis. Generic cialis….
Keflex….
Keflex. Keflex side effects….
Meridia venezuela….
C health meridia. Buy meridia. Meridia side effects. Meridia back pain. Meridia weight loss. Meridia. Meridia weight loss pill meridia weight loss….