diff --git a/menu/navigation.json b/menu/navigation.json index 49ac710115..b2c1e0cf01 100644 --- a/menu/navigation.json +++ b/menu/navigation.json @@ -946,7 +946,7 @@ }, { "label": "Troubleshooting inaccessibility issues to Mac minis", - "slug": "mac-mini-inacessible" + "slug": "mac-mini-inaccessible" }, { "label": "Troubleshooting Mac mini installation issues", diff --git a/pages/apple-silicon/troubleshooting/cant-connect-using-vnc.mdx b/pages/apple-silicon/troubleshooting/cant-connect-using-vnc.mdx index e4774eec4d..395c5c4cc8 100644 --- a/pages/apple-silicon/troubleshooting/cant-connect-using-vnc.mdx +++ b/pages/apple-silicon/troubleshooting/cant-connect-using-vnc.mdx @@ -83,29 +83,29 @@ If all else fails, [reinstall macOS](/apple-silicon/how-to/reinstall-mac-mini/) ## Advanced configuration and security ### Enabling and configuring Packet Filter (pf) -To restrict access to screen sharing: -```sh -sudo nano /etc/pf.conf -``` -Add: -```sh -block in on en0 proto tcp from any to any port 5900 -pass in on en0 proto tcp from to any port 5900 -``` -Apply: -```sh -sudo pfctl -f /etc/pf.conf -``` +1. Open the pf configuration file in a text editor to restrict access to screen sharing: + ```sh + sudo nano /etc/pf.conf + ``` +2. Add the following lines to the file and save it: + ```sh + block in on en0 proto tcp from any to any port 5900 + pass in on en0 proto tcp from to any port 5900 + ``` +3. Apply the configuration: + ```sh + sudo pfctl -f /etc/pf.conf + ``` ### Restarting screen sharing via SSH 1. Connect via SSH: -```sh -ssh your_mac_mini_username@ -``` + ```sh + ssh your_mac_mini_username@ + ``` 2. Restart screen sharing: -```sh -sudo killall screensharingd -``` + ```sh + sudo killall screensharingd + ``` ## Further troubleshooting If the issue persists, contact [Scaleway's support](https://console.scaleway.com/support) for assistance.