xshell
This article is think some of the problems encountered recently recorded, and some xshell
can 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 xshell
login 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 LANG
values 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 xshell
the setting. xshell
The 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 except
the 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 xshell
time to execute commands on the bulk, we can use this feature.
Spread
Used before a domestic ssh connection tool finallshell
, in this record, to avoid later forget.