Skip to content

Commit 5a73e82

Browse files
author
Louis Bouchard
committed
fix(instances): Document api-metadata as a cause of problem with SSH keys
1 parent 9372d00 commit 5a73e82

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

pages/instances/troubleshooting/fix-common-issues.mdx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ This page lists the most common issues you may encounter with your Scaleway Inst
8484
- Wrong username: Using `root` versus a custom user.
8585
- Misconfiguration of the SSH daemon: `sshd_config` might disallow key-based authentication.
8686
- Key not installed: The public key might not have been successfully added to the Instance.
87+
- No access to Scaleway's api-metadata : Api-metadata is responsible for loading the SSH keys.
8788

8889
### Solution
8990
- Check file permissions locally:
@@ -100,6 +101,16 @@ This page lists the most common issues you may encounter with your Scaleway Inst
100101
- Re-add your SSH Key in the Scaleway console:
101102
- Go to the [SSH keys](https://console.scaleway.com/project/ssh-keys) tab in the **Project** section of theScaleway console, remove the old SSH key, then add your new, correct public key.
102103
- Restart your Instance to re-upload the list of allowed SSH keys.
104+
- Confirm that your instance has access to the api-metadata by using the serial console
105+
- Execute the following :
106+
```bash
107+
# curl http://169.254.42.42/
108+
```
109+
The response should be
110+
```json
111+
{"api": "api-metadata", "description": "Metadata API, just query http://169.254.42.42/conf or http://169.254.42.42/conf?format=json to get info about yourself", "version": "12.23.0"}
112+
```
113+
Otherwise you need to identify why the access to api-metadata is blocked somehow.
103114

104115
### Additional resources
105116
- [Scaleway Documentation: How to generate an SSH key pair](/organizations-and-projects/how-to/create-ssh-key/)
@@ -287,4 +298,4 @@ This page lists the most common issues you may encounter with your Scaleway Inst
287298
## Next steps
288299

289300
- Always consult the official [Scaleway Instances Documentation](/instances/) for detailed, up-to-date information to troubleshoot your Instance.
290-
- If you are still experiencing issues after following these tips, open a [support ticket](https://console.scaleway.com/support) in your Scaleway console, providing detailed descriptions of your issue, logs, screenshots, or error messages. This will help the Support team diagnose and resolve your issue more quickly.
301+
- If you are still experiencing issues after following these tips, open a [support ticket](https://console.scaleway.com/support) in your Scaleway console, providing detailed descriptions of your issue, logs, screenshots, or error messages. This will help the Support team diagnose and resolve your issue more quickly.

0 commit comments

Comments
 (0)