Non-interactive remote execute command script under Linux

Source: Internet
Author: User
Tags ssh ssh example

Non-interactive remote execute command script under Linux (better than SSH)

OpenSSH are on every machine, and SSH and SCP often appear in our lives.

However, when the size of the machines to be managed is growing, it becomes impractical to manage the SSH landing to the target machine.

Although the command can be executed directly behind the SSH command. But the strict authorization of SSH allows us to enter a password, or establish a trust relationship, it is difficult to customize a specific authentication method.

This deficiency is based on SSH. So I wrote a Jetfire, this tool. One of the more important features than SSH is the ability to customize the authentication method and avoid a potential bug in SSH.

The bug is like this. For example, suppose the target machine is


SSH echo "Hello World"

Execute this command, see the output, not


Hello World



Hello World

The guess is that SSH translates the echo "Hello World" command into a string and executes it with BASH-C. While writing the Jetfire, the problem was repaired by the way.

The use of Jetfire is also very simple.

Jetfire-h command is on the back.

Eg:jetfire-h echo Hi Boy

For multiple machines, the method is also simple jetfire-h, echo Hi Boy

The execution results are like this.

If we write a list of machines into a file, such as Host.list, combined with the Xargs command, we can write a more advanced approach

Cat Host.list | Xargs-r-i{} jetfire-h {} echo Hi boy

Installation is also very simple, download, decompression, switch to Root,sh even if installed on the /etc/init.d/jetfirectl start starts the service process.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.