Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a script on windows which could run ssh command on a remote linux

Tags:

linux

I just want to create a auto script on windows which could do run some comand through ssh on a reomote linux.

I know it's easy to write script between linux(ssh client) and linux(ssh server).

But I do not know how to create a script on windows(ssh client) to remote connect to linux(ssh server)

like image 815
James Avatar asked Mar 16 '26 02:03

James


2 Answers

If it's just some command lines you want to run then plink will be enough IMHO..

Goodluck.

like image 157
user1629505 Avatar answered Mar 18 '26 15:03

user1629505


Most popular languages have ssh libraries you can use, pick a language you are familiar with and then go library hunting.

I've used these with success:

C - libssh
.NET - SharpSSH
Python - Paramiko or Really Simple SSH or Fabric

like image 45
jon Avatar answered Mar 18 '26 16:03

jon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!