diff options
author | Johan Venant <jvenant@invicem.pro> | 2015-03-14 17:05:16 +0100 |
---|---|---|
committer | Johan Venant <jvenant@invicem.pro> | 2015-03-14 17:05:16 +0100 |
commit | 7a04d2eb7b8bf899108b73a1e8971f81b37ea70a (patch) | |
tree | 81bf826e2ef9d0c8fa351759b79a4d39233a7c7a /README.md | |
parent | 977649613395d78076f9ea870197a1297742bfec (diff) |
Add some How-To
Add some info about how to export / import ssh and gpg keys
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -52,6 +52,28 @@ How-To ====== *Note:* This section is work in progress +Generate a ssh key for your git repo +-------------------------------------------- +- Generate the private and public key +``` +ssh-keygen -C droid_phone -b 2048 -t rsa -f /tmp/id_rsa_droid +``` +- Copy the public key `/tmp/id_rsa_droid.pub` on your ssh server and add in to the `~/.ssh/authorized_keys` file +``` +cat id_rsa_droid.pub >> ~/.ssh/authorized_keys +``` +- Copy the private key `/tmp/id_rsa_droid`to your phone and import it in your Android-Password_Store app through the settings + +Export your gpg private key +-------------------------------------------- +- Get your pass script gpg id(s) ie: `cat ~/.password-store/.gpg-id` +- You can also get a full ids list using `gpg -k` +- Export your private key with +``` +gpg --export-secret-key [the_id] > keys.asc +``` +- Import it in OpenKeychain + Clone using SSH-key, then decrypt a password -------------------------------------------- |