如果您需要访问您的Mac,但无法亲自访问,您应该考虑使用 macOS 的内置远程访问工具。您可以使用安全外壳(Shell)( SSH ) 连接、使用Mac屏幕共享或通过系统管理员的Apple 远程桌面(Apple Remote Desktop)服务从终端远程连接到另一台Mac 。
您还可以考虑使用第三方选项,例如Teamviewer,但 macOS 提供的内置选项应该是您连接到其他Mac(Macs)所需的全部。如果您想远程连接到另一台 Mac(Mac),以下是使用这些方法的方法。
设置 macOS 远程访问工具(Setting Up macOS Remote Access Tools)
在您可以使用内置的屏幕共享(Screen Sharing)工具远程连接到另一台Mac之前,您需要在Mac 系统偏好设置(Mac System Preferences)中启用对它的远程访问。如果您想使用SSH远程访问(SSH)Mac或使用Apple 远程桌面(Apple Remote Desktop)工具,您还需要执行这些步骤。
大多数用户都希望使用macOS 屏幕共享(macOS Screen Sharing)选项,该选项使用开源虚拟网络计算(Virtual Network Computing)( VNC ) 协议来创建远程桌面连接。对于非屏幕访问,启用 SSH 访问(enabling SSH access)将只允许您从终端访问您的Mac 。
如果您想在商业环境中控制多台Mac(Macs),您可能需要启用远程管理(Remote Management)(Remote Management)而不是屏幕(Screen)共享,以便更好地控制您的Mac,包括更改系统设置的能力。
- 要开始,请按顶部菜单栏中的Apple 图标,然后单击“(Apple icon )系统偏好设置”(System Preferences)选项。
- 在系统偏好设置(System Preferences)中,按共享(Sharing)选项。
- 共享(Sharing)选项菜单为您提供Mac的共享选项列表,包括与他人共享您的互联网连接和连接的设备。要启用 macOS屏幕共享(Screen Sharing),请点击屏幕共享(Screen Sharing)选项旁边的打开(On)复选框。
- 默认情况下,Mac 的管理员(Mac)用户(Administrators)组将被授权远程Mac 屏幕共享(Mac Screen Sharing),这意味着所有具有管理员访问权限的用户都可以连接。要从此列表中添加或删除其他用户,请按屏幕共享选项卡(Screen Sharing tab)下的允许访问选项中的(Allow access for )+ (plus)或-(减号)按钮(– (minus) buttons)。或者,按下所有用户单选按钮,为(All users)Mac上的所有用户帐户启用远程访问。
- 要使用Apple 远程桌面(Apple Remote Desktop)工具通过网络更全面地控制您的Mac,请按下“远程管理(Remote Management)”设置旁边的“开”复选框。(On)按允许访问选项中的(Allow access for )+ (plus)或-(减号)按钮(– (minus) buttons)以授权单个用户访问,或单击所有用户(All users)按钮以允许所有用户。
- 启用Remote Management时,您需要确认要允许多少访问权限。按(Press)每个选项旁边的复选框以授权远程访问这些功能,然后按OK保存。
- 如果您想使用安全外壳(Shell)( SSH ) 客户端连接到您的(SSH)Mac,您需要点击远程登录(Remote Login)设置旁边的打开复选框。(On)和以前一样,按“允许访问”选项中的(Allow access for )+ (plus)或–(减号)按钮(– (minus) buttons)以授权您希望允许连接的用户,或单击“所有用户(All users)”按钮以允许所有用户帐户。
在您的Mac(Mac)上启用这些设置后,您可以使用内置的Mac 屏幕共享(Mac Screen Sharing)应用程序或付费的Apple Remote Desktop工具、使用第三方VNC查看器或使用ssh命令从另一台Mac连接到它终点站。
如何使用屏幕共享远程连接到另一台 Mac(How To Connect To Another Mac Remotely Using Screen Sharing)
您连接到远程Mac的方式取决于您在“系统(System)偏好设置”应用程序的“(Preferences)共享(Sharing)”菜单中启用的选项。要连接到启用了屏幕共享的另一台(Screen Sharing)Mac,您需要启动屏幕共享(Screen Sharing )应用程序。
- 屏幕共享(Screen Sharing)应用程序有些隐藏,因此您需要按菜单栏右上角的Spotlight Search 图标,然后搜索(并启动)(Spotlight Search icon)屏幕共享(Screen Sharing)应用程序。
- 屏幕共享(Screen Sharing)应用程序非常易于使用。要进行连接,请输入远程Mac的 IP 地址或用于登录的Apple ID ,然后按下(Apple ID)连接(Connect)以开始连接。
- 根据您的访问设置,系统会要求您提供用户名和密码以建立连接。提供这些,然后单击连接(Connect)以继续连接。
如果连接成功,您的远程Mac桌面将出现在一个新窗口中,供您访问和控制。
如果您已启用远程管理(Remote Management)设置并希望使用它远程连接到另一台 Mac(Mac),则需要从App Store购买(App Store)Apple 远程桌面(Apple Remote Desktop)工具来建立连接。
使用 SSH 连接到远程 Mac(Connecting To a Remote Mac Using SSH)
Secure Shell ( SSH )协议允许远程终端连接。如果您启用了远程登录(Remote Login)设置,您应该能够使用第二台Mac上的内置SSH客户端或安装了(SSH)SSH客户端的其他设备与远程Mac建立(Mac)SSH连接。
- 为此,启动终端并输入ssh [email protected],将username替换为您的 Mac 用户名,并将ip.address 替换(ip.address)为您的 Mac 的 IP 地址。例如,ssh [email protected]。
- 如果这是您的第一次连接,您将需要接受关于真实性的警告 - 键入yes并按Enter键继续。SSH客户端还会询问您的帐户密码以建立连接。输入(enter)此内容,然后按键盘上的 Enter 键进行连接。
如果连接成功,您就可以开始使用Mac终端命令控制您的远程Mac 。完成后,键入exit以断开连接。
macOS 上远程连接(Remote Connections)的最佳工具(Best Tools)
借助这些选项,您可以使用另一台Mac或任何其他安装了VNC或SSH客户端的设备远程连接到另一台Mac。您也可以使用Mac来控制其他设备,因为可以使用Windows 远程桌面 for Mac(Windows Remote Desktop for Mac)软件来控制Windows PC 。(Windows PCs)
除了这些内置工具之外,您还可以使用许多第三方远程桌面应用程序(remote desktop apps)来远程控制您的设备,例如Teamviewer或Chrome 远程桌面(Chrome Remote Desktop)。在下面的评论中让我们知道您最喜欢的Mac远程桌面连接方法。
How To Use a Mac To Connect To Another Mac Remotely
If you need to access your Mac, but you can’t get to it in pеrѕon, уou should considеr using macOS’ built-in remote access tools. You can connect to another Mac remotеly from the termіnal using a Securе Shell (SSH) connection, by using Mac screen sharing, or through the Aрple Rеmote Desktop ѕervice for system adminіstrators.
There are also third-party options you can consider, such as Teamviewer, but the built-in options that macOS provide should be all you need to connect to other Macs. If you want to connect to another Mac remotely, here’s how to do it using these methods.
Setting Up macOS Remote Access Tools
Before you can connect to another Mac remotely using the built-in Screen Sharing tool, you’ll need to enable remote access to it in your Mac System Preferences. You’ll also need to follow these steps if you want to access a Mac remotely using SSH or to use the Apple Remote Desktop tool.
Most users will want to use the macOS Screen Sharing option, which uses the open-source Virtual Network Computing (VNC) protocol to create a remote desktop connection. For non-screen access, enabling SSH access will only allow you access to your Mac from the terminal.
If you want to control multiple Macs in a business environment, you’ll probably want to enable Remote Management instead of Screen Sharing to allow for more control over your Mac, including the ability to change system settings.
- To start, press the Apple icon in the top menu bar, then click the System Preferences option.
- In System Preferences, press the Sharing option.
- The Sharing options menu provides you with a list of sharing options for your Mac, including sharing your internet connection and connected devices with others. To enable macOS Screen Sharing, press the On checkbox next to the Screen Sharing option.
- By default, the Administrators user group for your Mac will be authorized for remote Mac Screen Sharing, meaning all users with administrator access will be able to connect.
To add or remove other users from this list, press the + (plus) or – (minus) buttons in the Allow access for options under the Screen Sharing tab. Alternatively, press the All users radio button to enable remote access for all user accounts on your Mac.
- To allow more complete control of your Mac over a network using the Apple Remote Desktop tool, press the On checkbox next to the Remote Management setting. Press the + (plus) or – (minus) buttons in the Allow access for options to authorize individual user access, or click the All users button to allow all users.
- When you enable Remote Management, you’ll need to confirm how much access you want to allow. Press the checkbox next to each option to authorize remote access to those features, then press OK to save.
- If you want to connect to your Mac using a Secure Shell (SSH) client, you’ll need to press the On checkbox next to the Remote Login setting. As before, press the + (plus) or – (minus) buttons in the Allow access for options to authorize which users you wish to allow to connect, or click the All users button to allow all user accounts.
Once these settings are enabled on your Mac, you can then connect to it from another Mac using the built-in Mac Screen Sharing app or the paid Apple Remote Desktop tool, using a third-party VNC viewer, or by using the ssh command at the terminal.
How To Connect To Another Mac Remotely Using Screen Sharing
How you connect to your remote Mac will depend on the option you enabled in the Sharing menu of the System Preferences app. To connect to another Mac with Screen Sharing enabled, you’ll need to launch the Screen Sharing app.
- The Screen Sharing app is somewhat hidden, so you’ll need to press the Spotlight Search icon in the top-right section of your menu bar, then search for (and launch) the Screen Sharing app.
- The Screen Sharing app is very simple to use. To connect, type the IP address of your remote Mac or the Apple ID used to sign into it, then press Connect to begin the connection.
- Depending on your access settings, you’ll be asked to provide a username and password to make the connection. Provide these, then click Connect to proceed with the connection.
If the connection is successful, your remote Mac desktop will appear in a new window for you to access and control.
If you’ve enabled the Remote Management setting and wish to use that to connect to another Mac remotely, you’ll need to purchase the Apple Remote Desktop tool from the App Store to establish a connection instead.
Connecting To a Remote Mac Using SSH
The Secure Shell (SSH) protocol allows for remote terminal connections. If you enabled the Remote Login setting, you should be able to make an SSH connection to your remote Mac using the built-in SSH client on your second Mac or another device with an SSH client installed.
- To do this, launch the terminal and type ssh [email protected], replacing username with your Mac username, and ip.address with your Mac’s IP address. For instance, ssh [email protected].
- If it’s your first connection, you’ll need to accept a warning about authenticity—type yes and press enter to continue. The SSH client will also ask for your account password to make the connection. Type this in, then press enter on your keyboard to make the connection.
If the connection is successful, you can then begin controlling your remote Mac using Mac terminal commands. Once you’re done, type exit to disconnect.
The Best Tools for Remote Connections on macOS
Thanks to these options, you can connect to another Mac remotely using another Mac or any other device with a VNC or SSH client installed. You can use your Mac to control other devices, too, as it’s possible to control Windows PCs using the Windows Remote Desktop for Mac software.
Outside of these built-in tools, there are plenty of third-party remote desktop apps you can use to take control of your devices remotely, like Teamviewer or Chrome Remote Desktop. Let us know your favorite method for Mac remote desktop connections in the comments below.