Mac OS X: How to automatically connect to a server when you log in

By making a server a login item, you can have the "Connect to Server" dialog automatically appear when you log in.

This article has been archived and is no longer updated by Apple.

Mac OS X can open or execute designated login items immediately after you log in to your computer. To make a server connection a login item, choose the steps below that match the version of Mac OS X that you are using.

Note: After following the below steps and the "Connect to Server" dialog box appears on startup, type your name and password, or choose Guest access, then click Connect.

For Mac OS X v10.4, v10.5, and v10.6

  1. From the Finder menu, choose Preferences. Under "Show these items on the Desktop," enable the option for "Connected servers."
  2. Connect to the server volume(s) you would like to automatically mount at login.
  3. Open System Preferences.
  4. Select the Accounts preference pane
  5. Click the Login Items tab.
  6. Drag the volume(s) from the Finder into the Login Items list in the System Preferences window.

 

For Mac OS X v10.3

  1. Connect to the server volume(s) you would like to automatically mount at login.
  2. Open System Preferences.
  3. Select the Accounts preference pane
  4. Click the Startup Items tab.
  5. In the Finder, browse to: ~/Library/Recent Servers
  6. Drag the volume from the Recent Servers folder into the Login Items list in the System Preferences window.

 

For Mac OS X v10.2

    1. From the Go menu, choose Connect to Server.
    2. Navigate to the desired server and select it, or type the server's address.
    3. Click Connect.
    4. Complete the authentication dialog.
    5. From the Go menu, choose Computer.
    6. From the Apple menu, choose System Preferences.
    7. From the View menu, choose Login Items.
    8. Drag the server's icon from the Finder window into the Login Items window.

 

For Mac OS X v10.1

    1. From the Go menu, choose Connect to Server.
    2. Navigate to the desired server and select it, or type the server's address.
    3. Click Add to Favorites. A location file is created in your Favorites folder.
    4. Click Cancel.
    5. From the Go menu, choose Favorites.
    6. Locate the location file that you created. It should have the name or IP address of the server you selected.
    7. From the Apple menu, choose System Preferences.
    8. From the View menu, choose Login.
    9. Drag the location file into the Login Items list.
  • When connecting to the server, if you elect to save the password to your keychain, you will be connected automatically using the username/password the next time you log into your computer. 
  • For Mac OS X v10.2.8 and earlier, SMB and NFS servers do not work with this method.
  • Mac OS X v10.3.9 and earlier only allow for mounting one server volume at a time using this method.
Last Modified:
Helpful?

Additional Product Support Information

Start a Discussion

in Apple Support Communities
See all questions on this article See all questions I have asked
United States (English)