Non-interactive remote command execution script in Linux (better than ssh)

Source: Internet
Author: User
Tags ssh example
In Linux, non-interactive remote command execution scripts (better than ssh) are available on each machine. ssh and scp are often used in our daily life. However, as the number of machines to be managed grows, it is unrealistic to log on to the target machine through ssh for management. Although it can be directly in... in Linux, non-interactive remote command execution scripts (better than ssh) are available on each machine. ssh and scp are often used in our daily life. However, as the number of machines to be managed grows, it is unrealistic to log on to the target machine through ssh for management. Although commands can be executed directly after ssh. However, strict ssh permission authentication requires you to enter a password or establish a trust relationship. it is difficult to customize a specific authentication method. Ssh-based deficiency. So I wrote a jetfire tool. One of the more important features than ssh is the ability to customize authentication methods, which avoids a potential bug in ssh. The bug is like this. Here is an example. assume the target machine is example.com [python] ssh example.com echo "hello world" and the output is as follows, instead of [python] hello world, but [python] hello world. I guess ssh converts echo "hello world" to a string and then runs it using bash-c. This problem was fixed by the way when jetfire was written. Jetfire is also easy to use. The jetfire-h example.com command can be placed behind. for example: jetfire-h example.com echo hi boy, the method for multiple machines is also very simple. jetfire-h example1.com, example2.com echo hi boy execution results look like this. If we write the machine list to a file, such as host. list, combined with the xargs command, you can write a more advanced method cat host. list | xargs-r-I {} jetfire-h {} echo hi boy installation is also very simple, download https://github.com/shxsun/jetfire/blob/master/jetfire0.9-arm64.tar.gz After decompression, switch to the root, and install sh install. sh. even if it is installed,/etc/init. d/jetfirectl start to start the service process.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.