Run Claude Code from your phone, anywhere, anytime. Persistent sessions that survive disconnections.
Your "Forever Terminal" that runs 24/7
If NOT using Claude Code template, install manually:
# Install Node.js (required) curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - sudo apt-get install -y nodejs # Install Claude Code globally npm install -g @anthropic-ai/claude-code # Verify installation claude --version
Protect against brute force attacks
# Install fail2ban sudo apt install fail2ban -y # Check it's running sudo systemctl status fail2ban
# Allow SSH port and enable firewall sudo ufw allow 22 && sudo ufw enable # Verify status sudo ufw status
# Disable password auth in both config files sudo sed -i 's/^#*PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config sudo sed -i 's/^#*PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config.d/*.conf 2>/dev/null # Restart SSH service sudo systemctl restart sshd
Mobile SSH client for terminal access
More secure than passwords
In Termius app:
Sessions survive disconnections
# Install tmux (usually pre-installed) sudo apt install tmux -y # Enable mouse support for better mobile experience echo "set -g mouse on" >> ~/.tmux.conf
# Start a new named session tmux new -s coding # Detach from session (keeps running) # Press: Ctrl+B, then D # List all sessions tmux ls # Attach to last session tmux a # Attach to named session tmux a -t coding # Kill a session tmux kill-session -t coding
tmux a โ Resume exactly where you left off!Use this prompt to have an AI help you troubleshoot or customize your setup: