Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Where are the "Connect to Server" history and favorites stored in OS X? Image
Hopefully they are in a pList file somewhere as I'd like to sync them between computers using Dropbox.

share|improve this question
up vote 5 down vote accepted

They are in ~/Library/Preferences/com.apple.sidebarlists.plist in the favoriteservers dictionary.

share|improve this answer
    
nice. how can I import / export just that dictionary from the command line? – cwd Sep 4 '12 at 16:05
1  
Read via : defaults read com.apple.sidebarlists favoriteservers. change read to write to write, but you have to have a dictionary to write to the plist. If you just want to add one item, you can use defaults write com.apple.sidebarlists dict-add key, value – camflan Sep 4 '12 at 16:08
    
woo hoo! thanks! +1 – cwd Sep 4 '12 at 16:22

I wanted to update this as I was looking and could not find an answer that worked On OS X El Capitan (10.11.5). I started poking around and I found them in a different location.

~/Library/Application Support/com.apple.sharedfilelist/ com.apple.LSSharedFileList.FavoriteServers.sfl

  1. Copy from the old location.
  2. Paste to the new location.
  3. Change the owner (if needed)
    • Right (CTRL) Click > Get Info > Sharing and Permissions > Unlock > select or add user (making sure it has read/write > Gear > "Make user the owner"
    • You could also use the terminal with "sudo chown 'username' '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.FavoriteServers.sfl' " making sure to replace 'username' with your actual username.
  4. Relaunch the Finder (might not be required).

In response to the original question, you may be able to put this file in a DropBox folder and run an alias to the Library location. Not sure how it would work with multiple owners and permissions on the file as I don't use dropbox and haven't tested it.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .