From 7d866868f3c7e01e933692597e862f5364b5353e Mon Sep 17 00:00:00 2001 From: tekkub Date: Sat, 30 Jan 2010 14:51:24 -0800 Subject: Keep our backup keys in the .ssh folder, it has specific permissions to protect the keys. --- _posts/2009-06-15-linux-key-setup.textile | 11 ++++++----- _posts/2009-06-15-mac-key-setup.textile | 11 ++++++----- _posts/2009-06-15-msysgit-key-setup.textile | 9 ++++----- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/_posts/2009-06-15-linux-key-setup.textile b/_posts/2009-06-15-linux-key-setup.textile index da9fe7f..a3dee9d 100644 --- a/_posts/2009-06-15-linux-key-setup.textile +++ b/_posts/2009-06-15-linux-key-setup.textile @@ -12,18 +12,19 @@ Generating an SSH key on linux is a fairly straightforward process. First and f h2. Backup and remove existing keys +p(. _If you have an existing keypair you wish to use, you can skip this step._ + Unless this is your first time setting up ssh or git on your computer, you should double check that keys do not already exist. If they do you can either use the existing key(s) or remove them. In either case, you should make a backup of the keys.
$ cd ~/.ssh
 $ ls
 config                id_rsa.pub
 id_rsa                known_hosts
-$ cd ..
-$ mkdir ssh_key_backup
-$ cp .ssh/id_rsa* ssh_key_backup
-$ rm .ssh/id_rsa*
+$ mkdir key_backup +$ cp id_rsa* ssh_key_backup +$ rm id_rsa* -Here we have an existing keypair, @id_rsa@ and @id_rsa.pub@, which we've copied into @~/ssh_key_backup@ before removing. By default, ssh will use keys in @~/.ssh@ that are named @id_rsa@, @id_dsa@ or @identity@. +Here we have an existing keypair, @id_rsa@ and @id_rsa.pub@, which we've copied into @~/.ssh/key_backup@ before removing. By default, ssh will use keys in @~/.ssh@ that are named @id_rsa@, @id_dsa@ or @identity@. h2. Generating a key diff --git a/_posts/2009-06-15-mac-key-setup.textile b/_posts/2009-06-15-mac-key-setup.textile index f7484bf..ce88c0e 100644 --- a/_posts/2009-06-15-mac-key-setup.textile +++ b/_posts/2009-06-15-mac-key-setup.textile @@ -12,17 +12,18 @@ Generating an SSH key on OSX is a fairly straightforward process. First and for h2. Backup and remove existing keys +p(. _If you have an existing keypair you wish to use, you can skip this step._ + Unless this is your first time setting up ssh or git on your computer, you should double check that keys do not already exist. If they do you can either use the existing key(s) or remove them. In either case, you should make a backup of the keys.
$ cd ~/.ssh
 $ ls
 config  id_rsa  id_rsa.pub  known_hosts
-$ cd ..
-$ mkdir ssh_key_backup
-$ cp .ssh/id_rsa* ssh_key_backup
-$ rm .ssh/id_rsa*
+$ mkdir key_backup +$ cp id_rsa* key_backup +$ rm id_rsa* -Here we have an existing keypair, @id_rsa@ and @id_rsa.pub@, which we've copied into @~/ssh_key_backup@ before removing. By default, ssh will use keys in @~/.ssh@ that are named @id_rsa@, @id_dsa@ or @identity@. +Here we have an existing keypair, @id_rsa@ and @id_rsa.pub@, which we've copied into @~/.ssh/key_backup@ before removing. By default, ssh will use keys in @~/.ssh@ that are named @id_rsa@, @id_dsa@ or @identity@. h2. Generating a key diff --git a/_posts/2009-06-15-msysgit-key-setup.textile b/_posts/2009-06-15-msysgit-key-setup.textile index 4ed627b..b73f7df 100644 --- a/_posts/2009-06-15-msysgit-key-setup.textile +++ b/_posts/2009-06-15-msysgit-key-setup.textile @@ -17,12 +17,11 @@ Unless this is your first time installing msys on your computer, you should doub
$ cd ~/.ssh
 $ ls
 config  id_rsa  id_rsa.pub  known_hosts
-$ cd ..
-$ mkdir ssh_key_backup
-$ cp .ssh/id_rsa* ssh_key_backup
-$ rm .ssh/id_rsa*
+$ mkdir key_backup +$ cp id_rsa* key_backup +$ rm id_rsa* -Here we have an existing keypair, @id_rsa@ and @id_rsa.pub@, which we've copied into @~/ssh_key_backup@ before removing. By default, ssh will use keys in @~/.ssh@ that are named @id_rsa@, @id_dsa@ or @identity@. +Here we have an existing keypair, @id_rsa@ and @id_rsa.pub@, which we've copied into @~/.ssh/key_backup@ before removing. By default, ssh will use keys in @~/.ssh@ that are named @id_rsa@, @id_dsa@ or @identity@. h2. Generating a key -- cgit v1.3.1