Xshell specific operations and multi-session Xshell remote connection setup tips

A few days ago to share the installation tutorial Xshell today to share with you how to make a remote connection in Xshell, and share with you how to set up a command can be sent multiple terminals, to Xshell6 here as an example, a specific tutorial below.

1, the top left Click "file" -> "New", as shown in FIG.

 

 

2, and later pop up the interface, the interface is to set a new session, we need to set here is the name of a session, the host IP address in the red box corresponding column.

 

3, here I name it slave2, and then gives the IP address of the terminal after the setting, click "OK" can be.

 

 

4, in this case the left side, "all conversations" directory slave2 can see just the new session, as shown in FIG.

 

 

5, select the session slave2 just created, then right, select the "OPEN", as shown below.

 

 

6, and later it will pop up a security warning remote interface, which means you are connected to the remote hope "one-off connection" or "Accept and Save." Given that we often have to connect to the remote terminal, we generally select "accept and save", as shown in FIG.

 

 

7, pop up the interface, where we need to give the user name remote connections.

 

 

8, the user name is usually root, if you want Xshell remember your login, then remember to check the figure below blank box, as shown below and then, click "OK" to connect.

 

 

9, this step requires a password or a remote terminal server or virtual machine or the like, as shown below, and then choose whether to let Xshell remember your password.

 

 

10, where fill login password, and check the drop-down box "remember password" and later choose "the OK", as shown in FIG.

 

 

11, after the above steps are completed, Xshell to automatically connect, shown below, connected to the remote terminal slave2 success.

 

 

Thus, the remote connection terminals Xshell tutorial have been completed, a small technique described below, for actuating a plurality of terminals by, the following specific program.

1. Click Xshell Home tab "View" -> "Compose" -> "ComposeBar" (Article box form) or "Compose Pane" (panel form).

 

 

2, after the selection is completed, think below Xshell will appear a little white box for writing manipulation commands.

 

 

3、点击空白框的左侧小logo,然后右键,如下图所示。选中第三个“To All Sessions”,意思是将操作命令发送到所有会话中,也就是让命令一次性执行在多个终端上。

 

 

4、下面验证一下,输入命令“ls”,如下图所示。可以看到三个终端上都执行了“ls”这条命令。一般的,当一次性执行之后,在其他的会话窗口的左边有个蓝色的感叹号产生,如下图所示,代表该命令也执行了。

 

 

至此,本文该告一段落了,主要讲述了Xshell远程连接的具体操作步骤和Xshell多会话设置的小技巧,这个小技巧十分常用,而且还可以极大的提高我们的效率,希望小伙伴们都可以掌握并且运用到实践中去。

Guess you like

Origin www.cnblogs.com/dcpeng/p/11590283.html