Xshell Some use methods and precautions

xshell

This article is think some of the problems encountered recently recorded, and some xshellcan help us to improve terms of efficiency.

xshell coding problems

We connect to the server, is logged on to the machine via a local springboard, then log on to our server via stepping stones, I order to simplify the steps, I use a xshelllogin script, but after logging, while editing the script, notes in the script before discovery the Chinese, now is garbled, I manually login to our server, and then edit the script, before the Chinese are normally displayed.

I think before the next, the problem may be the character set, I see both sides of the LANGvalues of the variables, are found en_US.UTF-8.

Then to the next, whether it is environmental variables, comparison of the two sides under the environment variable is the same.

problem solved

Finally found the problem, it is xshellthe setting. xshellThe default code is connected gbk, at the bottom end of our session attributes and services which can be found coding. We will set this UTF-8, the problem is solved.

xshell can improve the efficiency of the function

Login Script

This function is, and we write exceptthe script is the same, it can match our input, when matched, it will send commands we set, so that it can achieve some automated login. And to achieve the specified command for the implementation of specific output requirements.

I realize with this function is automatically logged in our springboard machine and then log on to our designated server.

Batch operations

When we need xshelltime to execute commands on the bulk, we can use this feature.

1569768749826

Spread

Used before a domestic ssh connection tool finallshell, in this record, to avoid later forget.

Guess you like

Origin www.cnblogs.com/operationhome/p/11614432.html