Running remote scripts on Linux Servers from Windows

Davio

I'm on a Windows server, I'm looking for a way to run some scripts (through RSH?) remotely on Linux servers.

Thing is, I have to do a lot of stuff manually on different servers whenever I want to test something and I'd like to automate it, also to make it less error-prone.

Is there any way to do this?

Currently I'm just logged in to SSH terminals with Putty and run the scripts locally on the Linux servers.

pabouk

You are already using great protocol for remote access (SSH). I would recommend you to use it for running commands remotely too. PuTTY you mentioned contains also a text console SSH client plink. If the remote scripts are not very interactive the best option would be to use plink:

plink [options] [user@]host [command]

If the script is highly interactive it could be better to use the classical GUI PuTTY.

putty -ssh -l user -pw password -m command.txt host

In this case you have to create a file (command.txt) and store the command to execute there. Here is more information about PuTTY command line.

For this use of SSH it could be very helpful to use a public key authentication instead of passwords. Then it is possible to run the commands without entering a password. See for example: Public Key Authentication With PuTTY or Key-Based SSH Logins With PuTTY.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Running QTP Scripts on a Remote Machine (Windows 7)

From Dev

ssh -X on Linux to remote server running Windows

From Dev

Execute commands on a remote servers by 2 scripts

From Dev

FTP and execute shell scripts on windows from linux

From Dev

Run batch scripts on a remote server (windows) from jenkins

From Dev

How to run VMware commands from remote scripts on windows

From Dev

linux running few scripts launch from a central script

From Dev

How to delete a folder in remote Windows from Linux

From Dev

How to remote Shutdown Linux machine from Windows?

From Dev

Talking to remote docker from Linux to Windows

From Dev

Connect PHP on Linux server to MS SQL on remote server running Windows

From Dev

Running Multiple Scripts from Startup Folder on Windows 7

From Dev

Running Commands on a Remote Linux

From Dev

For loop for ports in multiple remote servers in Linux

From Dev

PowerShell remote execution between two Linux servers

From Dev

Remote BIOS update from current running Linux OS

From Dev

Running a shell script to a remote linux server from the local window?

From Dev

Install linux bash script from windows to a remote linux system

From Dev

Which Linux distribution is used for running servers with a hypervisor?

From Dev

Two web servers running in one linux machine?

From Dev

Migrate mongodb database from localhost to remote servers

From Dev

copy small files in parallel from remote servers

From Dev

Migrate mongodb database from localhost to remote servers

From Dev

running Xvfb in background on remote linux

From Dev

Check if remote process is running (linux)

From Dev

Check if remote process is running (linux)

From Dev

Windows to Linux Remote Desktop

From Dev

Running Photoshop scripts from PHP?

From Dev

Running scripts from another directory

Related Related

  1. 1

    Running QTP Scripts on a Remote Machine (Windows 7)

  2. 2

    ssh -X on Linux to remote server running Windows

  3. 3

    Execute commands on a remote servers by 2 scripts

  4. 4

    FTP and execute shell scripts on windows from linux

  5. 5

    Run batch scripts on a remote server (windows) from jenkins

  6. 6

    How to run VMware commands from remote scripts on windows

  7. 7

    linux running few scripts launch from a central script

  8. 8

    How to delete a folder in remote Windows from Linux

  9. 9

    How to remote Shutdown Linux machine from Windows?

  10. 10

    Talking to remote docker from Linux to Windows

  11. 11

    Connect PHP on Linux server to MS SQL on remote server running Windows

  12. 12

    Running Multiple Scripts from Startup Folder on Windows 7

  13. 13

    Running Commands on a Remote Linux

  14. 14

    For loop for ports in multiple remote servers in Linux

  15. 15

    PowerShell remote execution between two Linux servers

  16. 16

    Remote BIOS update from current running Linux OS

  17. 17

    Running a shell script to a remote linux server from the local window?

  18. 18

    Install linux bash script from windows to a remote linux system

  19. 19

    Which Linux distribution is used for running servers with a hypervisor?

  20. 20

    Two web servers running in one linux machine?

  21. 21

    Migrate mongodb database from localhost to remote servers

  22. 22

    copy small files in parallel from remote servers

  23. 23

    Migrate mongodb database from localhost to remote servers

  24. 24

    running Xvfb in background on remote linux

  25. 25

    Check if remote process is running (linux)

  26. 26

    Check if remote process is running (linux)

  27. 27

    Windows to Linux Remote Desktop

  28. 28

    Running Photoshop scripts from PHP?

  29. 29

    Running scripts from another directory

HotTag

Archive