I have a requirement to execute multiple shell scripts on the Linux severs regularly. Is there any tool in windows that connect to a Linux server and execute the given script with given user and shows the output in windows machine.


use plink (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html), you also can use putty to execute the ssh command but you can't get the output.

C:\>plink.exe -ssh root@ -pw mypassword uptime
06:40:58 up 50 days,  3:30,  8 users,  load average: 0.00, 0.07, 0.10

C:\>plink.exe -ssh root@ -pw mypassword uptime > output.txt

C:\>type output.txt
06:41:45 up 50 days,  3:31,  8 users,  load average: 0.00, 0.06, 0.09

execute script

C:\>type cmd.txt

C:\>plink.exe -ssh root@ -pw mypassword -m cmd.txt
06:41:45 up 50 days,  3:31,  8 users,  load average: 0.00, 0.06, 0.09
  • Wonderful, I am looking for this kind of tool only. – Sriharsha Kalluru Nov 15 '12 at 7:32

You can just use PuTTY. Just create a saved session using SSH which executes the script on the server. It will SSH into the sever, execute the script, and display the output.

  • I am looking for any tool that stores username, password and path of the script and to return the output. I don't want to enter the input manually. – Sriharsha Kalluru Nov 15 '12 at 5:26
  • 1
    @user1005707 Yes, PuTTY can do that; you can set up a saved session which includes a username and the command to run. It won't save the password, but the preferred way to do this securely is use an SSH key and Pageant to load it once and then not have to type the password again. – Brian Campbell Nov 15 '12 at 5:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.