---
title: "Deploy Kali Linux (Web Terminal)"
description: "Instant Kali Linux browser terminal powered by ttyd"
category: "Other"
url: https://railway.com/deploy/kali-linux-web-terminal
---

# Deploy Kali Linux (Web Terminal)

Instant Kali Linux browser terminal powered by ttyd

**[Deploy Kali Linux (Web Terminal) on Railway](https://railway.com/template/kali-linux-web-terminal)**

- **Creator:** decoge
- **Category:** Other
- **Total deploys:** 2,247

## Template content

### Kali Linux (Web Terminal)

- **Source:** https://github.com/decoge/kali-linux-webterminal-railway
- **Public domain:** Yes

## Documentation

# Deploy and Host Kali Linux (Web Terminal) on Railway

This template provides a **one-click Kali Linux web terminal** running on Railway, giving you instant browser-based access to the world’s most popular penetration testing distribution, without managing servers or SSH keys. **Kali Linux** is a Debian-based operating system built for penetration testing, ethical hacking, digital forensics, and security research.

## About Hosting Kali Linux (Web Terminal)

Deploying Kali Linux (Web Terminal) on Railway uses the official `kalilinux/kali-rolling` Docker image in a lightweight, containerized environment. Railway handles orchestration, networking, and scaling, delivering a ready-to-use Kali Linux shell with minimal setup.

A persistent volume is mounted at `/data` to retain installed tools, scripts, configurations, and collected artifacts across redeployments and restarts. This provides an on-demand, cloud-hosted Kali Linux environment ideal for security testing, labs, and isolated experimentation.

## Common Use Cases

* Penetration testing and ethical hacking labs
* Red team and blue team security exercises
* Digital forensics and incident response testing
* Running Kali security tools, scripts, and custom workflows
* Learning and training in cybersecurity and offensive security

## How Access Works

* Access the Kali Linux shell directly from your **browser**
* Secured with **basic authentication**
* Powered by **ttyd**, providing a real interactive terminal
* Fully compatible with Railway’s dynamic port routing

## Dependencies for Kali Linux (Web Terminal) Hosting

### Environment Variables

Configure the following variables in the Railway dashboard:

* **`USERNAME`**
  Choose a username used to log in to the web-based terminal.

* **`PASSWORD`**
  Choose a password used to log in to the web-based terminal.

### Deployment Dependencies

* Official Kali Linux Docker image: `kalilinux/kali-rolling`
  [https://hub.docker.com/r/kalilinux/kali-rolling](https://hub.docker.com/r/kalilinux/kali-rolling)
* SSH: Railway CLI for proxy access and diagnostics
  [https://docs.railway.app/guides/cli#ssh](https://docs.railway.app/guides/cli#ssh)

## SSH Usage (Optional)

### Prerequisites

1. Railway CLI installed on your local machine
2. Logged in with your Railway account using `railway login`

### Usage

You can copy the exact command directly from the Railway dashboard:

1. Open your project in the Railway dashboard
2. Right-click the Kali Linux service
3. Select **“Copy SSH Command”**
4. Paste the command into your local terminal to connect

## Why Deploy Kali Linux on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Kali Linux (Web Terminal) on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/kali-linux-web-terminal
