2 Replies Latest reply: Mar 20, 2013 4:49 PM by fabiobean
fabiobean Level 1 (0 points)

I have public SSH keys on my other computers so I don't have to log in every time I SSH. Will I have to remake them or will they still work?

Mac OS X (10.6.8)
  • BobHarris Level 6 (17,709 points)

    What are you doing that makes you worried about your ssh keys?


    My experience with ssh keys is that as long as the local system has the same private key in .ssh and the destination system has your matching .pub key in the .ssh/authorized_keys file, AND all "man ssh" specified file and directory permissions are correct, then there is very little that will affect your existing keys.


    The one thing that affects your .ssh/known_hosts file is if the destination system has been re-installed such that a new /etc/ hosts key is generated, then you might get ssh warnings about possible man in the  middle worries.


    So what are you doing that worries you about your ssh keys?

  • fabiobean Level 1 (0 points)

    I was just worried because the public key ends with [username]@[ComputerName].local . I was afraid that if I changed [username] then the keys wouldn't work properly anymore. I think you answered my question though. Thanks!