Skip to content

Instantly share code, notes, and snippets.

@thegreatestminer
thegreatestminer / ssh
Last active February 17, 2021 14:45 — forked from yashkumaratri/Google Colab SSH
Allows you to connect to your Google Colab by using ssh and ngrok.
#@markdown <h2><- Click here to enable SSH.</h2>
#@markdown <h4>Get authtoken from <a href="https://dashboard.ngrok.com/auth">ngrok.</a></h4>
import string, time
authtoken = "CHANGE THIS" #@param {type:"string"}
sshpassword = "CHANGE THIS" #@param {type:"string"}
#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