To generate a 1024 Bit encrypted SSH key you can use the following command:
$> ssh-keygen -b 1024 -t rsa
Normally the key is saved in ~/.ssh/id_rsa together with the corresponding public key (~/.ssh/id_rsa.pub).
Attention: Make sure you can remember the paraphrase later on if you entered one.