Copy Keychain Logins & Passwords from One Mac to Another

Jul 5, 2012 - 5 Comments

Copy Keychain login and passwords between Macs

Most Mac users are best served by using the easy Migration Assistant tool to copy all files, folders, preferences, and login data from one computer to another. This isn’t always an option though, perhaps because a hard drive is failing, or maybe you just prefer to manually migrate only very specific data from an old Mac to a new one. Aimed at advanced users, this article will focus on transferring all passwords and login information you have stored on one Mac to another Mac, effectively transferring all crucial login data that is handled by Keychain.

Transfer Keychain Data Between Macs

  1. From the OS X Finder of the Mac containing the original keychain file, hit Command+Shift+G to bring up Go To Folder and enter the following path:
  2. ~/Library/Keychains/

  3. Copy the ser “login.keychain” file to the new Mac, do this with AirDrop, Ethernet, USB, etc
  4. On the new Mac, hit Command+Spacebar to open Spotlight and type “Keychain Access” then hit return, this launches the Keychain manager app
  5. Pull down the “File” menu and select “Add Keychain” and browse to the keychain file you copied to the new Mac, selecting Add to import the stored keychain data to the new Mac

With the keychain data imported, all of the stored logins and passwords from the old Mac should be imported into the new Mac and ready to use. You can test it by going to a web page or app where password data is typically stored and verifying that it is automatically entered.

If you have problems with OS X not remembering passwords after importing the old keychain, use the Repair feature in Keychain Access to get everything back to normal.

If you are performing the keychain transfer from a Mac that can’t be booted, locate the file directly by navigating to:

/users/USERNAME/Library/Keychains/

Changing USERNAME to the user name of the individual who owns the keychain file.

Finally, if you used external media like a USB drive to transfer the keychain file, you will probably want to go manually delete that since it’s never a good idea to have login information floating around.

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: William Pearson in Mac OS X, Tips & Tricks

5 Comments

» Comments RSS Feed

  1. vna says:

    If you are starting with a brand new Mac I would highly recommend Migration Assistant, it’s hands off and flawless.

    • EjK says:

      I total agree with vna. I had to sell my old mac before my new one came. At the last minute I did a backup using time machine and wiped my old mac and shipped it off. Days later when my new mac came I restored using Migration Assistant with my time machine backup and it was like I never left. Flawless. Try doing that with a PC. Not happening.

      • Eric says:

        Sometimes Migration Assistant is not an option, especially when jumping several revs of the OS, like say going from Tiger to Mountain Lion. This is helpful information. Trust me on this.

  2. Marco says:

    Here is a solution to sync keychains between macs. Called Keychain2Go http://www.jinx.de/Keychain2Go.html

  3. Jes says:

    Thanks for this information!!!
    Attempted to delete an imported keychain and could not find the Library folder under my user path. Went to view – show view options – clicked on show Library folder as it was by default hidden.

Leave a Reply

 

Shop for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates