Deploy Ubuntu SSH + Claude
ARA TM —SSH server with root access + Claude Code pre-installed.
ubuntu(ssh+claude)
Just deployed
Deploy and Host
Deploy your own Ubuntu 24.04 cloud workstation on Railway in one click. This template builds from the Dockerfile in parham7991/railway-ubuntu-ssh-claude, starts sshd on port 22, and automatically exposes it via Railway TCP Proxy.
Steps:
- Set
ROOT_PASSWORD(required) in Variables - Click Deploy
- Go to Service → Settings → Networking → copy your TCP Proxy domain and port
- Connect:
ssh root@ -p
The container configures root password, optional sudo user, authorized_keys, and injects ANTHROPIC_AUTH_TOKEN on every boot. No manual VPS setup.
About Hosting
This template hosts a persistent SSH server inside Railway's container runtime:
- Base: Ubuntu 24.04 LTS minimal
- Service: OpenSSH Server (sshd) running on port 22
- Access: Direct root login with password or key auth (
AUTHORIZED_KEYS) - Tooling: git, curl, wget, vim, nano, micro, tmux, screen, zsh, htop, btop, bat, ripgrep, jq, Python 3, Node.js + npm, build-essential
- AI: Claude Code (Anthropic official CLI) pre-installed, managed via
claude-settings.json(OpenRouter-ready by default) - UX:
cl/زمcommand opens a persistent tmux sessionclauderunning Claude Code, ARA TM welcome banner, bilingual EN/FA support viaAPP_LANG
Hosting is ephemeral by design (Docker), not a traditional VPS. Use Railway Volumes if you need persistence.
Why Deploy
- Instant Workstation: No need to rent a VPS. Get root SSH in 30 seconds on Railway's global edge.
- AI-Powered Coding: Claude Code is already installed. Run
cland start building with AI in your terminal. - Secure by Default:
ROOT_PASSWORDis mandatory — container refuses to start without it. Your token is never baked into the image. - Full Control: Real root, apt-get, systemd-less but full Linux. Install anything.
- Bilingual & Remote-Friendly: Built for English and Persian developers, OpenRouter support for regions where Anthropic direct API is limited.
- One-Click + TCP Proxy Pre-configured: Unlike other SSH images, the TCP proxy on port 22 is already defined in
railway-template.json.
Common Use Cases
- Cloud Dev Environment: Code from iPad, Chromebook, or any low-spec device via SSH.
- Claude Code Cloud Runner: Run Claude Code 24/7 in a tmux session without keeping your laptop on.
- Emergency Jump Box: A secure, disposable root box with nmap, curl, traceroute, whois.
- CI/CD Debugging: SSH into a Railway-like environment to test builds.
- Learning Linux & AI: Teach students SSH, tmux, and AI-assisted development without local setup.
Dependencies for
This template has zero external service dependencies. It is a standalone Docker service.
Optional integrations for extended use:
- For AI features: OpenRouter API key or Anthropic API key as
ANTHROPIC_AUTH_TOKEN - For Persistence: Railway Volume Mount at
/rootor/home - For Code Sync: Your GitHub repo (git clone inside)
Deployment Dependencies
Required:
ROOT_PASSWORD(secret, string): Mandatory root password. The entrypoint/usr/local/bin/ssh-user-config.shwill exit 1 if missing, preventing insecure deploy.
Optional:
ANTHROPIC_AUTH_TOKEN(secret): Token for Claude Code. Supportssk-ant-...(Anthropic) andsk-or-...(OpenRouter). Injected into~/.claude/settings.jsonon boot.SSH_USERNAME+SSH_PASSWORD: Creates secondary sudo user (both must be set).AUTHORIZED_KEYS: One or more SSH public keys for root (ssh-rsa,ssh-ed25519).APP_LANG:en(default) orfafor Persian runtime messages.
Infrastructure:
- Builder:
DOCKERFILE(Ubuntu 24.04) - Start Command:
/usr/local/bin/ssh-user-config.sh - Port:
22/tcpwith Railway TCP Proxy enabled - Restart Policy:
ON_FAILURE(10 retries)
© ARA TM · Maintained by Parham_7991 · MIT
Template Content
ubuntu(ssh+claude)
parham7991/railway-ubuntu-ssh-claudeROOT_PASSWORD
Password for the root user. Mandatory — the container will not start without it. / رمز کاربر root. الزامی — بدون آن کانتینر اجرا نمیشود.
