demotomohiro / remocolab

remocolab is a Python module to allow remote access to Google Colaboratory using SSH or TurboVNC.
MIT License
316 stars 229 forks source link

Supporting ngrok's authtoken argument #67

Closed Anon-Exploiter closed 3 years ago

Anon-Exploiter commented 3 years ago

(ngrok only)Then the message that ask you to copy & paste tunnel authtoken of ngrok will appear. Login to ngrok, click Auth on left side menu, click Copy, return to Google Colaboratory, paste it to the text box under the message and push enter key. ngrok token must be kept secret. I understand people hate copy & pasting ngrok token everytime they use remocolab, but I don't know how to skip it without risking a security. If you could specify ngrok token to remocolab.setupSSHD() or remocolab.setupVNC(), you can save ngrok token to a notebook. Then, you might forget that your notebook contains it and share the notebook.

Even though it's written in the documentation that by intention you haven't allowed any argument to hard code the authentication key. I'm not sure anyone would be sharing this but regardless of that maybe add a disclaimer or something in bold?

Really need the argument, right now have added my key as a comment and copy-paste from there, I'd normally fork your repo and use that version but would like to stay up-to-date.

Would appreciate if you could add such an argument.

Anon-Exploiter commented 3 years ago

Looking at https://github.com/demotomohiro/remocolab/pull/10, guess it won't be implemented.

demotomohiro commented 3 years ago

If you use Argo Tunnel instead of ngrok, you don't need to copy-paste authtoken. I wrote how to use remocolab with it on README.md.