Skip to content

Instantly share code, notes, and snippets.

View AkashiSN's full-sized avatar
🏠
Working from home

Akashi_SN AkashiSN

🏠
Working from home
View GitHub Profile
@AkashiSN
AkashiSN / colaboratory_ssh.txt
Last active November 22, 2019 05:05 — forked from creotiv/gist:d091515703672ec0bf1a6271336806f0
connect colaboratory by ssh
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