I found a very good explanation of how to set up public key authentication over ssh. I’m always looking for it when I need it, and it always takes forever.

http://www.petefreitag.com/item/532.cfm

You can also use ssh-copy-id, I’m not sure what the specifics are behind it, but it seems to be available occasionally (Fedora 6) and not in other places (OS X 10.4.8).

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
 

2 Responses to Public and Private Keys over SSH

  1. Scott Gale says:

    Just out of curosity are you using this for automated tasks? Because it seems like it could potentially be pretty insecure depending on how you’re setting this up. If you set this up without a passphrase (which is typically done if you are doing automated tasks) then if the client machine is compromised the server will be compromised.

  2. jon says:

    Yes. If my laptop is stolen, and my account is broken into, then yes, my server can also be accessed, if I don’t create a new pair of keys on it first. My passwords are still secure, however.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>