Skip to content

Commit

Permalink
Rewrite command to handle spaces in paths correctly on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed Mar 7, 2012
1 parent 7c16679 commit f9e684c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2012-03-07-mac-verify-ssh.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ First, you need to open Terminal.app, usually found at /Applications/Utilities.
Copy and paste this command into Terminal.app to find the fingerprints for all public keys in your ".ssh" directory:

<pre class="terminal bootcamp">
<span class="codeline">$ ls ~/.ssh/*.pub | xargs -L 1 ssh-keygen -l -f<span>Print fingerprint for each public key in the ".ssh" directory in your user directory</span></span>
<span class="codeline">$ for i in ~/.ssh/*.pub; do ssh-keygen -l -f "$i"; done<span>Print fingerprint for each public key in the ".ssh" directory in your user directory</span></span>
</pre>

If the output says &ldquo;No such file or directory&ldquo; then you have no SSH keys locally or they are stored somewhere else.
Expand Down

0 comments on commit f9e684c

Please sign in to comment.