cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
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
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.

@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?

@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
Moderator
Moderator

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!

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.