简体   繁体   中英

Running shell commands remotely on multiple servers?

I need to run shell commands on several servers. Is there a secure way to do this? Right now im thinking of exposing a php url that allows me to send pure script commands and let the web server spit out a json response. But this is a lot of work and doesnt sound like it will be very secure.

I want to run commands like "ping", "whois" and other network commands. Its about seeing connectivity between different servers. Ie Server in germany can talk to the server in the us, etc

Use ssh . Read a good ssh tutorial . You want to use it with a public key (to avoid typing passwords).

Of course, you need to have an SSH server process running on the remote server machines.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM