Skip to content

Instantly share code, notes, and snippets.

View mitanshu7's full-sized avatar
🏠
Working from home

Mitanshu Sukhwani mitanshu7

🏠
Working from home
View GitHub Profile

After setting up Cloudflared on Termux, we can now SSH into the phone that has Termux installed.

Cloudflare setup

  1. Create a Public Hostname, ssh.example.com, with the following properties:

    a. Service type: SSH

    b. URL: 127.0.0.1:8022

Install cloudflared:

In Termux, issue:

pkg upgrade
pkg install cloudflared

Creating a Cloudflare Tunnel

@mitanshu7
mitanshu7 / Cloudflared on Alpine Linux, Raspberri Pi Zero 2W.md
Last active July 30, 2025 18:18 — forked from sarkrui/install-cloudflared.md
Install Cloudflared on Alpine Linux, Raspberri Pi Zero 2W.

Cloudflared Setup Guide

This guide will walk you through setting up Cloudflared on your system.

Pre-Requisites

You need to have administrative (doas) access to your system.

Add nano editor using: doas apk update && doas apk add nano

@mitanshu7
mitanshu7 / Tailscale without root.md
Last active August 10, 2025 08:50
Tailscale without root

1. Basic Identification

title: "How to run Tailscale without root" subtitle: "Longing to connect to your lab server?" author: "Mitanshu Sukhwani" date: "2025-06-07" lang: en

2. Metadata / SEO

description: "Learn how to set up and run Tailscale in user-space without root access. Includes steps for downloading static binaries, configuring tailscaled with a custom socket and port, automating startup via cron, and troubleshooting multi-user setups."