We usually use Xshell, SECURECRT, putty and other SSH connection tools to connect to the remote host, each input instruction is in a single session window, if there are many sessions, need to enter the same instruction at the same time, we do not have one by one input, wasting time and energy. To find a more convenient way to do so, here's how to set up Xshell to send instructions to multiple sessions at the same time.
Use version: Xshell 4.0
The steps are as follows:
1. Open 2 Sessions
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/31/wKiom1XIVVnhInyAAAEepkP4cTw857.jpg "style=" float: none; "title=" 1.jpg "alt=" Wkiom1xivvnhinyaaaeepkp4ctw857.jpg "/>
2. Select Menu bar: View-Compose column , tick the box above to select.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/71/2D/wKioL1XIV12jtx9gAAGMp0lSEGA329.jpg "style=" float: none; "title=" 2.jpg "alt=" Wkiol1xiv12jtx9gaagmp0lsega329.jpg "/>
3, check, at the bottom of the Xshell window, the dialog box appears, in this input command, you can choose to the current session , you can choose all sessions , and all the Xshell;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/71/31/wKiom1XIVV_wEIdGAACX0NiCS14012.jpg "style=" float: none; "title=" 3.jpg "alt=" Wkiom1xivv_weidgaacx0nics14012.jpg "/>
4, we enter the LS command in the dialog box
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/2D/wKioL1XIV1_QxpkSAAAunjuDC8k716.jpg "style=" float: none; "title=" 4.jpg "alt=" Wkiol1xiv1_qxpksaaaunjudc8k716.jpg "/>
5, the first session window displays the results;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/31/wKiom1XIVWHBymE2AAC45YrD9-8332.jpg "style=" float: none; "title=" 5.jpg "alt=" Wkiom1xivwhbyme2aac45yrd9-8332.jpg "/>
6, the Second session window displays the results;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/71/2D/wKioL1XIV2PgT9p3AADL1j3nuis850.jpg "style=" float: none; "title=" 6.jpg "alt=" Wkiol1xiv2pgt9p3aadl1j3nuis850.jpg "/>
If you have more than one host, it is very convenient and efficient to do the same thing.
SECURECRT also has the same function, see everyone's usage habits to achieve the purpose.
The only drawback is that you can't use the TAB key to complete commands and paths like the command line, and you need to enter them all manually, making it easy to make mistakes. I wonder if there is any way to solve it?
The only way to be stupid is to start typing in the command line and then paste the copy into the following.
This article is from the "Model Student's Learning blog" blog, please be sure to keep this source http://mofansheng.blog.51cto.com/8792265/1683336
Xshell ways to send instructions to multiple sessions at the same time