How to login SSH on Azure Databricks cluster How to login SSH on Azure Databricks cluster azure azure

How to login SSH on Azure Databricks cluster


Unfortunately, we cannot SSH to the Cluster for now.

I did a test in my lab:

There was a SSH section in the Cluster configuration. But now, we cannot see it here.

enter image description here

Also, I found the VMs behind the Databricks in a resource group, I try to change the SSH configuration from portal but failed. Then I found the Databricks resource group has been locked to Read-Only. You cannot delete it from portal neither.

enter image description here

I tried to found the cause why cannot SSH the Cluster behind the Databricks, I saw the NSG rule of the VMs which belongs to that Databricks :

enter image description here

It means that Azure Databricks only allow only one source to SSH the VM, and the source is Databricks control plane . We can also understand this in the picture of Architecture of Azure Databricks:

enter image description here

Azure Databricks is a very new feature in Azure. I believe it will be better in future.You can post your idea in Azure Feedback Forum or in this blog's comment. Azure Team will review it .

Hope this helps!


this is maybe a newer feature (https://docs.azuredatabricks.net/user-guide/clusters/ssh.html still not documented)but it is possible to set up ssh

in the 'public vnet' that Azure databricks sets up and puts driver VMs on, you need go to the Network Security group for it and add port 2200 (note, not the default SSH port 22) for inbound connections

this is what an Azure support specialist sent me:

enter image description here

then you can set up your public key in the cluster in the SSH tab under Advanced cluster settingsand you should be able to connect!


As per my knowledge, you cannot SSH on Azure Databricks.

Note: Azure Databricks integrated with Azure Active Directory – So, Azure Databricks users are only regular AAD users.

  • Azure Active Directory users can be used directly in Azure Databricksfor al user-based access control (Clusters, jobs, Notebooks etc.).
  • Azure Databricks has delegated user authentication to AAD enablingsingle-sign on (SSO) and unified authentication.
  • Notebooks and their outputs, are stored in the Databricks account.However, AAD based access control ensures that only authorized userscan access them.enter image description here