Allow remote access to your server

You can allow or deny access to your server from remote computers that are using the Server app, screen sharing, Apple Remote Desktop, or SSH (Secure Shell).

Allow remote login to your server

You can use the Server app to allow logging in to your server remotely from another computer. After allowing remote login, you can log in to your server by using the ssh command-line tool on another computer. By default, only members of the Administrators group have access to SSH.

  1. Select your server in the Server app sidebar, then click Settings.

  2. Select “Allow remote login using SSH”

    Selecting this option also enables the secure FTP (sftp) service.

  3. Choose which users can access your server using SSH.

    1. Click Access.

    2. Select the desired service from the Custom Access list.

    3. Click the Action pop-up menu gear, then choose Edit Custom Access.

    4. Click the “Allow connections from” pop-up menu, then choose “only some users.”

    5. In the users and groups sheet, enter a user or group name.

    6. To add more users or groups, click Add add, then enter another name.

    7. When you’ve added all the desired users and groups, click OK.

Allowing remote login to your server can make your server less secure. For information about keeping your server secure, search Mac Help for “Protect the information on your Mac.”

Allow screen sharing and remote management

You can use the Server app to let other computers view your screen and control your server. The other computer’s user sees what’s on your screen and can open, move, and close files and windows, open apps, and even restart the server.

If you allow screen sharing and remote management, your server can be observed and controlled by screen sharing software using the VNC protocol on another computer or Apple Remote Desktop on another Mac. VNC screen sharing is included with OS X. It’s also available for Windows computers and for iPhone, iPad, and iPod touch. Apple Remote Desktop is available from the Mac App Store.

  1. Select your server in the Server app sidebar, then click Settings.

  2. Select “Enable screen sharing and remote management.”

    The following are three possible states for Screen Sharing and Remote Management:

    State

    Description

    -

    Screen Sharing is enabled.

    Remote Management is enabled.

    unselected

    Remote management and Screen Sharing are disabled.

    Selecting this option in the Server app only allows screen sharing and Apple Remote Desktop access by the administrator account created when the server was initially set up.

  3. Choose which users can access your server using Screen Sharing.

    1. Click Access.

    2. Select the desired service from the Custom Access list.

    3. Click the Action pop-up menu gear, then choose Edit Custom Access.

    4. Click the “Allow connections from” pop-up menu, then choose “only some users.”

    5. In the users and groups sheet, enter a user or group name.

    6. To add more users or groups, click Add add, then enter another name.

    7. When you’ve added all the desired users and groups, click OK.

If you want to allow other VNC viewer software apps access, select Remote Management or Screen Sharing in Sharing preferences, then select “VNC viewers may control screen with password” and enter a password.

Allow remote administration

You can allow the Server app on another computer to remotely administer your server. By default, you can only connect to your server with the Server app you installed on your computer.

  1. Select your server in the Server app sidebar, then click Settings.

  2. Select “Allow remote administration using Server.”

See also
Manage your server remotely
Set up an administrator computer