Last active
October 16, 2024 03:23
-
-
Save bikcrum/f9d4cfb0c40dff23329b89cd664d4964 to your computer and use it in GitHub Desktop.
This is the way how can you connect google colab as well as google drive (mounted) using SSH. This is useful when you want to download data directly to your google drive specially for machine learning purpose. It can be easy to mount google drive and use files into for your code.
@bikcrum Thank you so much for this helpful post! It really saves me!
http://localhost:4040/api/tunnels
is not available. Hence, giving a
ConnectionError: HTTPConnectionPool(host='localhost', port=4040): Max retries exceeded with url: /api/tunnels (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7c1f67e215a0>: Failed to establish a new connection: [Errno 111] Connection refused'))
I'd likely at least amend this to include a direct reference to NGrok, if that's what you want to use for tunneling. Blindly downloading binaries from other sites generally isn't recommended.
I'd also recommend not completely overwriting the sshd_config
file, but using a local config for the user, instead (read: there's likely a better way to do this tunnel).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Swastik2000 you shouldn't be prompted for a password if you put a correct rsa pub key in: