cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Can we trigger a script from a databricks notebook to the windows remote machine(in VPN)?

Chaitanya_Raju
Honored Contributor
 
Thanks for reading and like if this is useful and for improvements or feedback please comment.
7 REPLIES 7

daniel_sahal
Esteemed Contributor

@Ratna Chaitanya Raju Bandaruโ€‹ 

It's doable.

For example you can use SSH to connect to the windows machine and run your scripts in there (SSH client needs to be installed on the Win machine)

@Daniel Sahalโ€‹ ,

Thanks for your quick response, if there is any blog or documentation or any stackoverflow link can you please help me with the same, so it can be useful for me.

Thanks for reading and like if this is useful and for improvements or feedback please comment.

@Ratna Chaitanya Raju Bandaruโ€‹ 

Here's how to install OpenSSH on WIN:

https://woshub.com/connect-to-windows-via-ssh/

Then you can just simply SSH to your machine from Databricks:

%sh
ssh -p PORT USER@DOMAIN.COM

Chaitanya_Raju
Honored Contributor

@Daniel Sahalโ€‹  , thanks for the update.

Is there any possibility this can be done using PowerShell i.e connect the server by executing Powershell script in databricks notebooks?

Thanks for reading and like if this is useful and for improvements or feedback please comment.

@Ratna Chaitanya Raju Bandaruโ€‹ 

You can try to install pwsh on the cluster, but i'm not sure if this will behave same as on Windows machine.

https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux?view=p...

Hi, have you found any way to do it? i have the same requirement and not able to find any meaningful solution.

Vartika
Databricks Employee
Databricks Employee

Hi @Ratna Chaitanya Raju Bandaruโ€‹

Just wanted to check in if you were able to resolve your issue. If yes, would you be happy to mark an answer as best? If not, please tell us so we can help you.

Thanks!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group