diff options
| author | Cameron McEfee <cameron@github.com> | 2011-02-25 16:50:20 -0800 |
|---|---|---|
| committer | Cameron McEfee <cameron@github.com> | 2011-02-25 16:50:20 -0800 |
| commit | 6ec471bf54b9623d963767df9b2afced3b812220 (patch) | |
| tree | 1b9fd56e9009beae2fc0e7a89e26cad8b64dca95 /_posts/2011-02-15-linux-set-up-git.markdown | |
| parent | c9055e51fe06c70dd6376a960f18bbf5babb4a1b (diff) | |
added info about ssh passphrases
Diffstat (limited to '_posts/2011-02-15-linux-set-up-git.markdown')
| -rw-r--r-- | _posts/2011-02-15-linux-set-up-git.markdown | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/_posts/2011-02-15-linux-set-up-git.markdown b/_posts/2011-02-15-linux-set-up-git.markdown index 0450529..c4d34b2 100644 --- a/_posts/2011-02-15-linux-set-up-git.markdown +++ b/_posts/2011-02-15-linux-set-up-git.markdown @@ -23,6 +23,12 @@ _*If you don’t already know what Git is, <a href="http://progit.org/bo When you’ve selected git-core, git-gui, and git-doc, hit “Apply” to install them. <img src="/images/bootcamp/bootcamp_1_linux_install_4.jpg" width="558" height="173" alt="Click Apply" /> + + If you don’t have a package manager like Synaptic, or you’d rather install the necessary git components from the command line, run the script below: + + <pre class="terminal bootcamp"> + <span class="codeline">$ sudo apt-get install git-core git-gui git-doc<span>Installs git-core, git-gui, and git-doc on your system</span></span> + </pre> __*Note*__ Don’t worry that you don’t see an icon when it’s done. It’s not that kind of application. @@ -98,7 +104,22 @@ To make sure you generate a brand new key, you need to check if one already exis <span class="bash-output">Enter file in which to save the key (/home/<em>your_user_directory</em>/.ssh/id_rsa):</span> </pre> - Now you need to enter a passphrase. _[Why is this important?](../working-with-key-passphrases)_ + Now you need to enter a passphrase. + + <div class="more-info"> + <h4 class="compressed">Why do passphrases matter?</h4> + <div class="more-content"> + <p>Passwords aren’t very secure, you already know this. If you use one that’s easy to remember, it’s easier to guess or brute-force (try many options until one works). If you use one that’s random it’s hard to remember, and thus you’re more inclined to write the password down. Both of these are Very Bad Things™. This is why you’re using ssh keys.</p> + + <p>But using a key without a passphrase is basically the same as writing down that random password in a file on your computer. Anyone who gains access to your drive has gained access to every system you use that key with. This is also a Very Bad Thing™. The solution is obvious: add a passphrase.</p> + + <p><em>But I don’t want to enter a long passphrase every time I use the key!</em></p> + + <p>Neither do we! Thankfully, there’s a nifty little tool called <code>ssh-agent</code> that can save your passphrase securely so you don’t have to re-enter it. Most linux installations will automatically start <code>ssh-agent</code> for you when you log in.</p> + + <p>For more information about SSH key passphrases, check out our <a href="/working-with-key-passphrases">help guide</a>.</p> + </div> + </div> <pre class="terminal bootcamp"> <span class="bash-output">Enter passphrase (empty for no passphrase):</span> |
