Skip to content

Instantly share code, notes, and snippets.

View wangziyang182's full-sized avatar

Lion William wangziyang182

View GitHub Profile
@wangziyang182
wangziyang182 / Google Colab SSH
Created September 22, 2019 04:03 — forked from yashkumaratri/Google Colab SSH
SSH into google colab
#CODE
#Generate root password
import random, string
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