# Create a server

Let's create a server first. please use `root` user.

<figure><img src="/files/L4sEYUZu9ArmSnSLQ2Nv" alt=""><figcaption></figcaption></figure>

After creating the server, we need to adding public key to our server. if you did'nt setup the server yet, please follow this [instruction](/project/code-deploy/pre-requisite.md).

Copy the ssh public key.

<figure><img src="/files/ssk4ObnwYDrAznOTexEJ" alt=""><figcaption></figcaption></figure>

Remote your server with root user

```bash
ssh root@your.server.public.ip
```

open authorized\_keys and paste your public key

```bash
nano .ssh/authorized_keys
```

and then  `Check connection`, make sure the connection is successfully

<figure><img src="/files/V98JPoEDTLEKLboqJgBG" alt=""><figcaption></figcaption></figure>

Congrats, your server added to CodeDeploy!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codecrafters.id/project/code-deploy/how-to-use-it/create-a-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
