Wednesday, January 22, 2020

Java libraries for SSH and Powershell automation

If you are doing some basic automation and want to execute commands on Linux or Windows, then the following open source libraries would help.

JSch is a pure Java implementation of SSH2 and once you connect to a Linux server, you can execute all commands. A good tutorial is available here -

This is a simple Java API that allows to interact with PowerShell console. Sample code below:

No comments:

Post a Comment