summaryrefslogtreecommitdiff
path: root/_posts/2009-06-15-mac-key-setup.textile
diff options
context:
space:
mode:
authortekkub <tekkub@gmail.com>2009-07-27 01:51:05 -0600
committertekkub <tekkub@gmail.com>2009-07-27 01:51:05 -0600
commit6e4eaa1e31846f42fa50cee48b73bf0079e9aba6 (patch)
treef826efbca5942d4cf3e19ee95a936a2948166563 /_posts/2009-06-15-mac-key-setup.textile
parentb5a95e8c10b04c5d2add56c9d9815113149adf3f (diff)
Make pretty console pre blocks
Diffstat (limited to '_posts/2009-06-15-mac-key-setup.textile')
-rw-r--r--_posts/2009-06-15-mac-key-setup.textile8
1 files changed, 4 insertions, 4 deletions
diff --git a/_posts/2009-06-15-mac-key-setup.textile b/_posts/2009-06-15-mac-key-setup.textile
index ff33404..3f117db 100644
--- a/_posts/2009-06-15-mac-key-setup.textile
+++ b/_posts/2009-06-15-mac-key-setup.textile
@@ -13,7 +13,7 @@ h2. Backup and remove existing keys
Unless this is your first time setting up ssh or git on your computer, you should doublecheck 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.
-<pre>$ cd ~/.ssh
+<pre class="terminal">$ cd ~/.ssh
$ ls
config id_rsa id_rsa.pub known_hosts
$ cd ..
@@ -29,7 +29,7 @@ p(. _If you have an existing keypair you wish to use, you can skip this step._
Now that we're certain ssh won't use an existing key, it's time to generate a new keypair. Lets make an RSA keypair:
-<pre>$ ssh-keygen -t rsa -c "tekkub@gmail.com"
+<pre class="terminal">$ ssh-keygen -t rsa -c "tekkub@gmail.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/tekkub/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
@@ -57,7 +57,7 @@ h2. Adding the key to your GitHub account
Now launch your browser and open the "account page":https://github.com/account. In the "SSH Public Keys" section click "add another public key", then paste your public key into the "key" field. If you leave the title blank the key comment (your email) will be used for the title.
-Make sure you use the public key (@id_rsa.pub@ in our example), and do not add any newlines or whitespace inside the key. To ensure you copy the key correctly, you can copy the key directly into the clipboard from Terminal.app: <pre>$ cat ~/id_rsa.pub | pbcopy</pre>
+Make sure you use the public key (@id_rsa.pub@ in our example), and do not add any newlines or whitespace inside the key. To ensure you copy the key correctly, you can copy the key directly into the clipboard from Terminal.app: <pre class="terminal">$ cat ~/id_rsa.pub | pbcopy</pre>
!/images/add_key.png!
@@ -65,7 +65,7 @@ h2. Testing things out
Testing if our new key works is simple:
-<pre>$ ssh git@github.com
+<pre class="terminal">$ ssh git@github.com
Hi tekkub! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.</pre>