Thanks for reaching out. We don't support SSH logins to the NB server. But to get the Data Lab client functionality, simply install (with pip) on your machine the latest datalab command line client. See the README file for details: https://github.com/astro-datalab/datalab
After installation, this is also usable in Jupyter NBs or Python scripts:
from getpass import getpass
from dl import authClient as ac, queryClient as qc, storeClient as sc
token = ac.login(input("username:"),getpass("passsword:"))
result = qc.query("select * from gaia_dr3.gaia_source limit 5",fmt='pandas')
Hope this is helpful. Let us know if you have further questions.