0% found this document useful (0 votes)
159 views3 pages

Subscribe It Develop With Nitin

The document provides instructions for setting up SSH access through Cloudflare Tunnel using Google Colab or Termux. It outlines installing the Cloudflare Tunnel daemon (cloudflared) in Colab or Termux, then configuring SSH to route traffic through the cloudflared proxy for access to SSH hosts through Cloudflare tunnels.

Uploaded by

deep singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
159 views3 pages

Subscribe It Develop With Nitin

The document provides instructions for setting up SSH access through Cloudflare Tunnel using Google Colab or Termux. It outlines installing the Cloudflare Tunnel daemon (cloudflared) in Colab or Termux, then configuring SSH to route traffic through the cloudflared proxy for access to SSH hosts through Cloudflare tunnels.

Uploaded by

deep singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

==============================================================================

SUBSCRIBE IT
Develop with Nitin
#https://www.youtube.com/c/DevelopWithNitin

==============================================================================

FOR GOOGLE COLAB


==============================================================================

!pip install colab_ssh --upgrade

from colab_ssh import launch_ssh_cloudflared, init_git_cloudflared


launch_ssh_cloudflared(password="roothu")

====================================================
from time import sleep
for i in range(500):
sleep(59)
print("hello")
sleep(1)
==============================================================================
FOR TERMUX
==============================================================================

pkg upgrade
apt install openssh
===========================================================================

cd ~
yes "" | pkg update
yes "" | pkg install golang git debianutils make
git clone https://github.com/cloudflare/cloudflared.git --depth=1
cd cloudflared
sed -i 's/linux/android/g' Makefile
make cloudflared
install cloudflared /data/data/com.termux/files/usr/bin
==============================================================================

nano ~/.ssh/config
==============================================================================

Host *.trycloudflare.com
HostName %h
User root
Port 22
ProxyCommand /data/data/com.termux/files/home/cloudflared/cloudflared access
ssh --hostname %h
==============================================================================
ctrl+X
Y

==============================================================================
Thank you
==============================================================================

You might also like