Run Tailscale VPN in Linux machines with persistent IPs – without requiring sudo priveleges. Simple and secure setup.
- 🌐 Same IP every time – No more reconfiguring tools
- 🔒 Private networking – Enjoy encrypted peer-to-peer connections of Tailscale
- ⚡ Easy Setup – Ready in seconds!
- 🚫 No high priveleges permissions – Works without
sudo
curl -fsSL https://tailscale.com/install.sh | sh- Login with your Tailscale Account.
- Get a key from Tailscale - AuthKeys
For Github Codespaces:
- Visit github.com
- Go to Profile -> Settings -> Codespaces
- Under Secrets, tap on "New secret" button.
- Paste
TS_AUTH_KEYinside the input box which is below the "Name" field, and Paste the copied Tailscale - AuthKeys inside the input box of the "Value" field.- Click on the "Select repositories" button and select the repos in which you want to access your AuthKey.
- Lastly, click on the Add secret button.
For Linux machines
echo 'export TS_AUTH_KEY="tskey-auth-XXXXXX"' >> ~/.bashrc # bash echo 'export TS_AUTH_KEY="tskey-auth-XXXXXX"' >> ~/.zshrc # zsh source ~/.bashrc # or source ~/.zshrcReplace
tskey-auth-XXXXXXwith your actual authkey.
wget -O ~/.local/bin/start-tailscale https://raw.githubusercontent.com/itsMeRaj69/tailscale-nosudo/main/scripts/start-tailscale
wget -O ~/.local/bin/stop-tailscale https://raw.githubusercontent.com/itsMeRaj69/tailscale-nosudo/main/scripts/stop-tailscale
wget -0 ~/.local/bin/status-tailscale https://raw.gihubusercontent.com/itsMeRaj69/tailscale-nosudo/main/scripts/status-tailscalechmod +x ~/.local/bin/start-tailscale ~/.local/bin/stop-tailscale ~/.local/bin/status-tailscale| Command | What It Does |
|---|---|
start-tailscale |
Start Tailscale connection |
stop-tailscale |
Stop/Disconnect safely |
status-tailscale |
Check Tailscale Status |
- All scripts support a
--verboseflag for full status output. (e.g: start-tailscale --verbose)
- Revoke old keys in Tailscale - AuthKeys
# Check logs
cat /tmp/tailscaled.log
# Reset everything
rm -rf ~/.config/tailscale/ /tmp/tailscale*MIT Licensed — Not affiliated with Tailscale Inc.