Archive for February 27th, 2008
ssh keys and protocol version
Ok…so today, i wanted to make a secure backup script using rsync and ssh. But i wated it unattended…meaning, no user intervension. And i actually did it, but with a lil google search that i’m going to spare you after reading this.
So, when you create a public/private key pair using ssh-keygen you can choose rsa or des cypher for it…and, when you set up your ssh client and server you have to specify a protocol version: 1 or 2. So, based of my google search and experiments today, ssh protocol v1 works only with rsa keys, and ssh protocol v2 work only with des keys. And…be very careful with the settings of paths…to your public and private keys…and should work like a charm..