Hello from Linux Lite! 🚀
This server is running on my local PC and exposed via Cloudflare Tunnel.
Web URL: https://essex-queen-shown-president.trycloudflare.com (Cloudflare)
SSH URL (Permanent): tcp://0.tcp.ap.ngrok.io:13948
# Server Configuration Details
## 1. Web Server
- **URL:** `https://asamir.work`
- **Status:** **Permanent** 🔒
- **Notes:** This is your main website. It will always work.
## 2. SSH Access
- **URL:** `ssh.asamir.work`
- **Status:** **Permanent** 🔒
- **Notes:** Use this to log in remotely.
## How to Connect via SSH
From another computer, you have two options:
### Option A: Using Cloudflared (Recommended)
If you install `cloudflared` on your laptop, run:
```bash
ssh -J cloudflared:access-token
[email protected]
# (See SSH_GUIDE.md for setting up .ssh/config to make this easier)
```
### Option B: Using Ngrok (Backup)
If you don't want to install software on the client:
```bash
ssh
[email protected] -p 13948
```
## Troubleshooting "502 Bad Gateway"
If your website shows a **502 Error**, it means your local Python server stopped running.
To fix it, run this command:
```bash
nohup python3 -m http.server 8080 > ~/Documents/My_Servers/my-server/server.log 2>&1 &
```
## Auto-Start Commands (Run after reboot)
To ensure everything stays online:
```bash
# 1. Start Web Server
nohup python3 -m http.server 8080 > ~/Documents/My_Servers/my-server/server.log 2>&1 &
# 2. Start Cloudflare Tunnel (For Web & SSH)
nohup cloudflared tunnel run my-server > ~/Documents/My_Servers/my-server/cloudflared.log 2>&1 &
# 3. Start Ngrok (Backup SSH)
nohup ngrok tcp 22 > ~/Documents/My_Servers/my-server/ngrok_ssh.log 2>&1 &
```