---
title: "Deploy Ubuntu SSHD"
description: "🚀 Deploy and Host Ubuntu SSHD in a few clicks. "
category: "Other"
url: https://railway.com/deploy/ubuntu-sshd-1
---

# Deploy Ubuntu SSHD

🚀 Deploy and Host Ubuntu SSHD in a few clicks. 

**[Deploy Ubuntu SSHD on Railway](https://railway.com/template/ubuntu-sshd-1)**

- **Creator:** Egor's Projects
- **Category:** Other
- **Total deploys:** 433

## Template content

### railway-ubuntu-sshd

- **Source:** georgebrnv/railway-ubuntu-sshd

## Documentation

# Deploy and Host

Deploy an Ubuntu 22.04 container with SSH server access on Railway. This template provides a secure SSH environment for remote development, system administration, and container management tasks.

## About Hosting

This Docker image creates an Ubuntu 22.04 environment with OpenSSH server pre-configured for Railway deployment. Access your container remotely via SSH through Railway's TCP proxy feature for full terminal control.

## Why Deploy

- **Remote Development**: Access a full Ubuntu environment from anywhere
- **System Administration**: Manage containers with full shell access
- **Testing Environment**: Quickly spin up disposable Ubuntu instances
- **Learning Platform**: Practice Linux commands and system administration

## Common Use Cases

- Remote development and coding
- System administration training
- Container debugging and troubleshooting
- Quick Ubuntu environment for testing
- Command-line tool development
- Educational Linux environments

## Dependencies for

### Deployment Dependencies

- Docker runtime (provided by Railway)
- OpenSSH server
- Ubuntu 22.04 base image
- Network utilities (ping, telnet, iproute2)

## Quick Setup

1. **Deploy** to Railway
2. **Configure SSH credentials** via Railway environment variables:
   - `SSH_USERNAME` - Your desired username
   - `SSH_PASSWORD` - Your desired password
   - `AUTHORIZED_KEYS` - SSH public keys for key-based auth (optional)
3. **TCP Proxy Domain and Port** in Railway Settings → Networking
4. **Connect via SSH** using provided domain and port

## Environment Variables

- `SSH_USERNAME` - SSH username
- `SSH_PASSWORD` - SSH password
- `AUTHORIZED_KEYS` - SSH public keys for key-based auth (optional)

## Security Features

- Root login disabled by default
- User has sudo permissions
- SSH key authentication support
- Password authentication configurable

## Important Notes

⚠️ **Data Loss Warning**: Railway containers are ephemeral. All data is lost on redeploy. Use Railway Volume Mounts for persistent storage.

## Connect via SSH

```bash
ssh {username}@{domain} -p {port}
```

Example:
```bash
ssh myuser@mainline.proxy.rlwy.net -p 30899
```

## 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/ubuntu-sshd-1
