Skip to content

Commit 28becc3

Browse files
bene2k1jcirinosclwyRoRoJ
authored
feat(aps): rework troubleshooting (#4338)
* feat(aps): rework troubleshooting * feat(aps): troubleshooting * Apply suggestions from code review Co-authored-by: Jessica <[email protected]> * Update pages/apple-silicon/troubleshooting/cant-connect-using-ssh.mdx Co-authored-by: Jessica <[email protected]> * Apply suggestions from code review Co-authored-by: Jessica <[email protected]> * Apply suggestions from code review Co-authored-by: Rowena Jones <[email protected]> --------- Co-authored-by: Jessica <[email protected]> Co-authored-by: Rowena Jones <[email protected]>
1 parent f0cb3e0 commit 28becc3

8 files changed

+339
-176
lines changed

menu/navigation.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -941,20 +941,32 @@
941941
{
942942
"items": [
943943
{
944-
"label": "Filevault is preventing system boot",
944+
"label": "Troubleshooting issues related to FileVault preventing system boot",
945945
"slug": "filevault-preventing-system-boot"
946946
},
947+
{
948+
"label": "Troubleshooting inaccessibility issues to Mac minis",
949+
"slug": "mac-mini-inacessible"
950+
},
951+
{
952+
"label": "Troubleshooting Mac mini installation issues",
953+
"slug": "mac-mini-installation-issues"
954+
},
947955
{
948956
"label": "Troubleshooting remote desktop connections to Mac mini servers",
949957
"slug": "cant-connect-using-vnc"
950958
},
951959
{
952-
"label": "I can not connect to my Mac mini through a remote SSH connection",
960+
"label": "Troubleshooting SSH connection issues to Mac mini servers",
953961
"slug": "cant-connect-using-ssh"
954962
},
955963
{
956-
"label": "I can not create a new Apple Account on my Mac mini",
964+
"label": "Troubleshooting Apple account creation for hosted Mac minis",
957965
"slug": "cant-create-apple-account"
966+
},
967+
{
968+
"label": "Troubleshooting deletion issues with Mac minis",
969+
"slug": "cant-delete-mac-mini"
958970
}
959971
],
960972
"label": "Troubleshooting",
Lines changed: 44 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,63 @@
11
---
22
meta:
3-
title: Resolving SSH connection issues to Scaleway Mac mini
3+
title: Troubleshooting SSH connection issues to Scaleway Mac mini servers
44
description: Learn how to fix SSH connection problems with Scaleway Apple silicon Mac mini by uploading your SSH key and rebooting the device.
55
content:
6-
h1: Resolving SSH connection issues to Scaleway Mac mini
6+
h1: Troubleshooting SSH connection issues to Scaleway Mac mini servers
77
paragraph: Learn how to fix SSH connection problems with Scaleway Apple silicon Mac mini by uploading your SSH key and rebooting the device.
88
tags: ssh ssh-key connection
99
dates:
10-
validation: 2024-12-19
10+
validation: 2025-01-30
1111
posted: 2024-06-12
1212
categories:
1313
- bare-metal
1414
---
1515

16-
This documentation addresses an issue faced by users who are unable to connect to their Mac Mini via SSH.
17-
This problem typically arises because the user's SSH key has not been uploaded to the Mac Mini.
18-
It can also happen after multiple authentication failures while trying to access the VNC server because of default fail2ban security policies.
19-
This guide provides the necessary steps to resolve this issue by connecting to the Scaleway console and rebooting the Mac Mini from the Apple silicon section.
20-
21-
<Message type="note">
22-
The reboot **must** be carried out via the console, and not via any other method, in order to resolve the problem.
23-
</Message>
24-
2516
<Macro id="requirements" />
26-
2717
- A Scaleway account logged into the [console](https://console.scaleway.com)
2818
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
2919
- An [SSH key](/organizations-and-projects/how-to/create-ssh-key/)
3020
- A [Mac mini](/apple-silicon/how-to/create-mac-mini/)
3121

32-
1. Click **Apple silicon** in the **Bare Metal** section of the side menu. A list of your Mac minis displays.
33-
2. Click the Mac mini you want to configure. Your Mac mini information page displays.
34-
3. Scroll down to the **Reboot Mac mini** section. Click **Reboot** to reboot the Mac mini.
35-
<Message type="tip">
36-
Ensure you have [generated and uploaded your SSH key](/organizations-and-projects/how-to/create-ssh-key/) before rebooting your Mac mini.
22+
## Problem
23+
You are unable to connect to your Scaleway Mac mini via SSH.
24+
25+
### Symptoms
26+
- SSH connection attempts fail.
27+
- "Permission denied" or "Connection refused" errors appear.
28+
- Timeouts occur when trying to establish an SSH connection.
29+
30+
### Possible causes
31+
- The SSH key was not uploaded during the Mac mini setup.
32+
- Your IP has been blacklisted due to multiple failed authentication attempts.
33+
- The Mac mini requires a reboot to apply SSH key changes.
34+
35+
### Solution
36+
37+
#### Verify your SSH key
38+
Ensure your SSH key is correctly configured before attempting to connect:
39+
- Follow the instructions to [generate and upload an SSH key](/organizations-and-projects/how-to/create-ssh-key/).
40+
41+
#### Check for connection blacklisting
42+
Repeated failed login attempts can trigger Scaleway’s security mechanisms, blocking your connection. To resolve this:
43+
- [Reboot](/apple-silicon/how-to/reboot-mac-mini/) your Mac mini to reset the `fail2ban` security measures.
44+
A reboot ensures your SSH key is applied correctly and clears blacklisted IPs.
45+
1. Log in to the [Scaleway console](https://console.scaleway.com).
46+
2. Click **Apple silicon** in the **Bare Metal** section of the side menu.
47+
3. Select your Mac mini from the list.
48+
4. Scroll down to the **Reboot Mac mini** section and click **Reboot**.
49+
5. Confirm the reboot.
50+
51+
<Message type="note">
52+
The reboot **must** be carried out via the Scaleway console, and not via any other method, in order to resolve the problem.
3753
</Message>
38-
4. Click **Reboot Mac mini** to confirm. The Mac mini reboots and your SSH key will be uploaded during the boot process. Banned host lists are reset as well.
54+
55+
#### Attempt SSH connection again
56+
After the reboot, attempt to reconnect using:
57+
```sh
58+
ssh -i /path/to/your/private_key user@<server_ip>
59+
```
60+
Replace `/path/to/your/private_key` with your actual private key location and `<server_ip>` with your Mac mini’s IP address.
61+
62+
## Further troubleshooting
63+
If the issue persists, contact [Scaleway's support](https://console.scaleway.com/support) for assistance.
Lines changed: 73 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,158 +1,111 @@
11
---
22
meta:
33
title: Troubleshooting remote desktop connections to Mac mini servers
4-
description: This page suggests solutions for when you cannot establish a remote desktop connection to your Mac mini
4+
description: This page provides solutions for when you cannot establish a remote desktop connection to your Mac mini.
55
content:
66
h1: Troubleshooting remote desktop connections to Mac mini servers
7-
paragraph: This page suggests solutions for when you cannot establish a remote desktop connection to your Mac mini
7+
paragraph: This page provides solutions for when you cannot establish a remote desktop connection to your Mac mini.
88
tags: remote vnc connection apple-silicon error
99
dates:
10-
validation: 2024-12-19
10+
validation: 2025-01-30
1111
posted: 2023-04-07
1212
categories:
1313
- bare-metal
1414
---
1515

16-
This documentation provides a structured approach to diagnose and resolve issues when you cannot establish a remote desktop connection to your Mac mini.
17-
1816
<Macro id="requirements" />
19-
2017
- A Scaleway account logged into the [console](https://console.scaleway.com)
2118
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
19+
- An [SSH key](/organizations-and-projects/how-to/create-ssh-key/)
2220
- A [Mac mini](/apple-silicon/how-to/create-mac-mini/)
2321

24-
## 1. Verify the server status
22+
## Problem
23+
You are unable to establish a remote desktop (VNC) connection to your Scaleway Mac mini.
24+
25+
### Symptoms
26+
- VNC client fails to connect to the Mac mini.
27+
- Authentication errors occur during connection attempts.
28+
- Connection times out or is refused.
29+
- Mac mini appears unreachable.
30+
31+
### Possible causes
32+
- The Mac mini is powered off or unresponsive.
33+
- The VNC port assigned during system setup is incorrect.
34+
- The SSH server is unresponsive.
35+
- Your connection is blacklisted due to failed attempts.
36+
- Incorrect credentials are being used.
37+
- Remote connection client compatibility issues.
38+
39+
### Solution
2540

26-
Execute the following `ping` command in a terminal on your local machine:
41+
#### Verify the server status
42+
Run the following command in a terminal:
2743
```sh
2844
ping -c 5 <server_ip>
2945
```
30-
Expected output:
31-
```
32-
PING X.X.X.X (X.X.X.X): 56 data bytes
33-
64 bytes from X.X.X.X: icmp_seq=0 ttl=64 time=0.182 ms
34-
64 bytes from X.X.X.X: icmp_seq=1 ttl=64 time=0.261 ms
35-
64 bytes from X.X.X.X: icmp_seq=2 ttl=64 time=0.191 ms
36-
64 bytes from X.X.X.X: icmp_seq=3 ttl=64 time=0.200 ms
37-
64 bytes from X.X.X.X: icmp_seq=4 ttl=64 time=0.201 ms
38-
39-
--- X.X.X.X ping statistics ---
40-
5 packets transmitted, 5 packets received, 0.0% packet loss
41-
round-trip min/avg/max/stddev = 0.182/0.207/0.261/0.028 ms
42-
```
43-
- If `ping` fails, try [rebooting the server](/apple-silicon/how-to/reboot-mac-mini/).
44-
- If rebooting fails or if the server was forced to shut down, wait 24 hours for automatic restart. See [How to shutdown a Mac mini](/apple-silicon/how-to/shutdown-mac-mini/) for more information.
45-
46-
## 2. Verify the VNC connection
47-
48-
<Message type="important">
49-
The VNC port on Mac mini systems is **randomly assigned** during system installation and may therefore be different from the default VNC port 5900. To connect successfully via VNC, use the specific port shown in the **Overview** section of your Mac mini’s configuration.
50-
For manual connections, ensure that the port from the **Overview** section is correctly entered in your VNC client settings, as this is necessary for a successful connection.
51-
</Message>
46+
If `ping` fails:
47+
- Try [rebooting the server](/apple-silicon/how-to/reboot-mac-mini/).
48+
- If the server was forced to shut down, wait 24 hours for automatic restart.
5249

53-
Execute the following command in a terminal on your local machine:
50+
#### Verify the VNC connection
51+
Run the following command:
5452
```sh
5553
nc -zv <server_ip> <vnc_port>
5654
```
57-
Expected output:
58-
```
59-
Connection to <server_ip> port <vnc_port> [tcp/rfb] succeeded!
60-
```
61-
- If the connection fails, try [rebooting the server](/apple-silicon/how-to/reboot-mac-mini/).
62-
- If necessary, restart screen sharing via SSH. See [Restarting screen sharing via SSH](#restarting-screen-sharing-via-ssh).
55+
If the connection fails:
56+
- Verify the correct VNC port in the **Overview** section of your Scaleway console.
57+
- [Reboot the server](/apple-silicon/how-to/reboot-mac-mini/).
58+
- Restart screen sharing via SSH (see below).
6359

64-
## 3. Verify the SSH server response
65-
Execute the following command:
60+
#### Verify the SSH server response
61+
Run the command:
6662
```sh
6763
nc -zv <server_ip> 22
6864
```
69-
Expected output:
70-
```
71-
Connection to <server_ip> port 22 [tcp/ssh] succeeded!
72-
```
73-
- If the connection fails, try [rebooting the server](/apple-silicon/how-to/reboot-mac-mini/).
74-
75-
## 4. Check for connection blacklisting
76-
If VNC connection attempts repeatedly fail, the connection might be blacklisted, or the Apple screen sharing service might be unresponsive.
77-
78-
- [Reboot the server](/apple-silicon/how-to/reboot-mac-mini/) to clear the `fail2ban` table.
79-
80-
## 5. Verify your connection credentials
65+
If the connection fails, [reboot the server](/apple-silicon/how-to/reboot-mac-mini/).
8166

82-
### Remote desktop (VNC) credentials
83-
- Ensure the correct username and password are used. These can be verified in the console.
84-
- For errors like "Authentication failed," verify credentials and retry.
67+
#### Check for connection blacklisting
68+
If VNC connection attempts fail repeatedly, your connection may be blacklisted. [Rebooting](/apple-silicon/how-to/reboot-mac-mini/) clears the `fail2ban` table.
8569

86-
### SSH keys
87-
- Ensure the SSH key is correctly formatted and configured before installing the Mac.
88-
- SSH keys provided post-installation are not considered.
70+
#### Verify your connection credentials
71+
- VNC: Ensure correct username and password.
72+
- SSH: Ensure your SSH key was provided before installation.
8973

90-
## 6. Verify remote connection client compatibility
91-
Ensure your remote connection client is compatible with macOS. Incompatible remote desktop (VNC) clients can cause failed connection attempts. For recommended VNC clients, see [How to access to the remote desktop of a Mac mini](/apple-silicon/how-to/access-remote-desktop-mac-mini/#comparison-matrix-of-remote-desktop-clients).
92-
93-
## 7. Reinstall the Mac mini
94-
95-
If the previous attempts to resolve connection issues to your Mac mini have been unsuccessful, you may need to reinstall your server from the Scaleway console.
96-
97-
Follow these steps to reinstall macOS on your Mac mini:
98-
99-
1. Log in to your Scaleway console.
100-
2. Navigate to your Mac mini server.
101-
3. Select the option to reinstall a version of macOS.
102-
103-
For detailed instructions, refer to [How to reinstall a Mac mini](/apple-silicon/how-to/reinstall-mac-mini/).
74+
#### Verify remote access client compatibility
75+
Use a compatible VNC client. See [this guide](/apple-silicon/how-to/access-remote-desktop-mac-mini/#comparison-matrix-of-remote-desktop-clients) for recommendations.
10476

77+
#### Reinstall the Mac mini
78+
If all else fails, [reinstall macOS](/apple-silicon/how-to/reinstall-mac-mini/) via the Scaleway console.
10579
<Message type="important">
106-
Reinstalling your Mac mini will erase all data on the disk and reset all configurations to default settings. Ensure you have a backup of your data before proceeding.
80+
Reinstalling your Mac mini will delete all data on its disk. Ensure you have a backup of your data before launching any reinstallation.
10781
</Message>
10882

109-
## Security and configuration
110-
111-
### Enable and configure pf (Packet Filter)
112-
To restrict macOS Screen Sharing to specific IPs:
113-
1. Connect to your Mac mini via SSH:
114-
```sh
115-
ssh@<your_mac_mini_ip>
116-
```
117-
2. Backup the `pf.conf` file:
118-
```sh
119-
sudo cp /etc/pf.conf /etc/pf.conf.backup
120-
```
121-
3. Edit the `pf.conf` file:
122-
```sh
123-
sudo nano /etc/pf.conf
124-
```
125-
4. Add rules to restrict access:
126-
```sh
127-
## Add these lines to block connections to port 5900 except from your static IP
128-
block in on en0 proto tcp from any to any port 5900
129-
pass in on en0 proto tcp from <static IP> to any port 5900
130-
```
131-
Replace `en0` with your network interface and `<static IP>` with the allowed IP address.
132-
5. Save and close the file.
133-
6. Apply the new configuration:
134-
```sh
135-
sudo pfctl -f /etc/pf.conf
136-
```
137-
7. Test the screen sharing connection from the allowed IP and verify it is blocked from other IPs.
138-
139-
<Message type="tip">
140-
For advanced configuration and further information consult our [fail2ban tutorial](/tutorials/protect-server-fail2ban/).
141-
</Message>
83+
## Advanced configuration and security
84+
85+
### Enabling and configuring Packet Filter (pf)
86+
To restrict access to screen sharing:
87+
```sh
88+
sudo nano /etc/pf.conf
89+
```
90+
Add:
91+
```sh
92+
block in on en0 proto tcp from any to any port 5900
93+
pass in on en0 proto tcp from <static IP> to any port 5900
94+
```
95+
Apply:
96+
```sh
97+
sudo pfctl -f /etc/pf.conf
98+
```
14299

143100
### Restarting screen sharing via SSH
144-
If screen sharing is unresponsive, restart it via SSH:
145-
1. Connect to your Mac mini via SSH:
146-
```sh
147-
ssh your_mac_mini_username@<your_mac_mini_ip>
148-
```
149-
- Replace `<your_mac_mini_username>` with your Mac mini username.
150-
- Replace `<your_mac_mini_ip>` with the actual IP address of your Mac mini.
151-
2. Restart the screen sharing daemon:
152-
```sh
153-
sudo killall screensharingd
154-
```
155-
The service will restart automatically upon the next connection attempt.
156-
157-
## Troubleshooting and support
158-
For further assistance, visit our #apple-silicon channel in the [Slack Community](https://slack.scaleway.com/).
101+
1. Connect via SSH:
102+
```sh
103+
ssh your_mac_mini_username@<your_mac_mini_ip>
104+
```
105+
2. Restart screen sharing:
106+
```sh
107+
sudo killall screensharingd
108+
```
109+
110+
## Further troubleshooting
111+
If the issue persists, contact [Scaleway's support](https://console.scaleway.com/support) for assistance.

0 commit comments

Comments
 (0)