> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/websites/ftp-ssh.md).

# FTP & SSH Access

File transfers and terminal access over FTP, SFTP, and SSH.

> **Tip:** Prefer SFTP over plain FTP — SFTP encrypts credentials and transfers.

## FTP accounts

### Create an FTP account

1. Open your website dashboard.
2. Go to **FTP Accounts** → **Create FTP Account**.
3. Enter:
   * **Username** — the FTP username
   * **Password** — strong password
   * **Directory** — accessible directory (defaults to `public_html`)
4. Click **Create**.

### Connection details

Use these in FileZilla, Cyberduck, etc.:

| Setting      | Value                                       |
| ------------ | ------------------------------------------- |
| **Host**     | Your domain or the FTP hostname from hPanel |
| **Username** | Your FTP username                           |
| **Password** | Your FTP password                           |
| **Port**     | `21` (FTP) or `22` (SFTP)                   |
| **Protocol** | FTP or SFTP                                 |

### Change an FTP password

1. **FTP Accounts** → find the account.
2. Click **Change Password**.
3. Enter and confirm.

### Delete an FTP account

1. **FTP Accounts** → find the account.
2. Click **Delete**.

## SSH access

Terminal access for commands, files, and databases. Available on eligible plans.

### Get your SSH details

1. Open your website dashboard.
2. Go to **SSH Access** (or check **Advanced**).
3. Note your **hostname**, **username**, and **port**.

### Connect

```bash
ssh username@yourdomain.com -p 22
```

Replace with the values from hPanel.

### SSH key authentication

More secure than passwords.

Generate a key pair locally (if you don't have one):

```bash
ssh-keygen -t ed25519 -C "your@email.com"
```

This creates `~/.ssh/id_ed25519` (private) and `~/.ssh/id_ed25519.pub` (public).

Add your public key in hPanel:

1. **SSH Access** → **Add SSH Key**.
2. Paste the contents of `id_ed25519.pub`.
3. Click **Add**.

> **Warning:** Never share your private key. Only the public key goes to Hostinger.

Connect with the key:

```bash
ssh -i ~/.ssh/id_ed25519 username@yourdomain.com -p 22
```

### Remove an SSH key

**SSH Access** → click **Delete** on the key.

## Protocol comparison

| Protocol | Port | Use for                            |
| -------- | ---- | ---------------------------------- |
| FTP      | 21   | Legacy transfers — avoid, use SFTP |
| SFTP     | 22   | Secure file transfers over SSH     |
| SSH      | 22   | Terminal and commands              |

***

*Last updated: July 21, 2026*
