Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Akashi_SN AkashiSN

🏠
Working from home
View GitHub Profile
View colaboratory_ssh.txt
import random, string, urllib.request, json, getpass, time
#Generate root password
password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(20))
#Download ngrok
! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
! unzip -qq -n ngrok-stable-linux-amd64.zip
#Setup sshd