# SSH access to SiteGround space

This step will give you command line access to your new hosting account over the very secure SSH protocol.  This will be essential for the deployment method we are going to use.

If you already have personal SSH key, you can import this into your Siteground account.

### Importing personal key

Under the **Devs** section of Site Tools, Choose SSH Keys Manager and then click the greyed **Import** tab.

Give your imported key a name (for your info only).

Navigate to the folder containing your **public** key and import it.&#x20;

Optionally, you can restrict access to your server via SSH using specific IPs.

### Mac OS / Windows

Follow Siteground SSH instructions <https://www.siteground.co.uk/tutorials/ssh/>

### Create a shortcut / alias

You cannot just SSH into your server name, you need to check the credentials within the Siteground control panel

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

Establishing an SSH tunnel takes the form;

`ssh username@hostname -p18765`

Probably best to create an alias or shortcut for this!

After SSH into the server from your terminal, type `ll` to review the directory structure

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

Our Laravel website will be deployed to the www/ folder. `CD` to that folder and `ll`

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

Our website will be deployed to the folder named after your host, in this example `marks364.sg-host.com/`


---

# 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://laravelsharedhosting.novate.co.uk/siteground-shared-hosting/ssh-access-to-siteground-space.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.
