标签:
telnetsecurecrt配置 |
分类: It is my life... |
Here we take secureCRT 5.2.2.299 as an example, depict the configuration of some key points which is at least I think.
1.
In the fist time, you can
click this button
In the protocol, we choose telnet to connect and input hostname and then click connect button.
Ps: the difference between telnet and SSH is:
ftp/pop and telnet is non-secure protocol, it will send the information without encrypting, so bad guys can sniffer it in network. In the SSH communication between client and server, the message was encrypted for preventing sniffer. And with high speed transport because data was compressed in the transferring. But must install software in both client and server.
Normally, in the inner network, usually we use telnet connection, after you login once and if you select the “save session”, you will see the recent session in the window.
Click second
button
If you didn’t select “open in a tab”, the new connection will appear in other independent windows like this:
I think its better set
this option on or click the third button
to
open a new connection in a tab directly, especially for the
situation that you have to open so many sessions.
2.
@Primary Introduction
Now it’s the time to introduce the configuration related with options, it will be convenient for our operation and make our work efficient.
In the menu “Options”, there are “session options” and “global options”, actually “global options” includes the entire configuration item in “session options”
The default session in “global options” will invoke all conf items in “session options” and applied for all session, so some conf items should be set in global setting, such as log record/font etc.
To set the session options, you can open a session which was defined the IP and some basic item before, and select the options->session options, or use the shortcut: select one session which you wanna modify first and press “Alt+Enter”, the same function with the “Properties” in the popup menu when you right-click it.
But if you login the session first and select the options->session options, namely the former depicted above, you can configure all items with the latter but IP
you will see it with the grey “connection” conf item:
@Automate logon 自动登录
“Logon Scripts” item is the one which I most like, because in my work, I will maintenance so many connections which I already knew the password, this conf item will reduce the operation which login and switch during my work.
Select “Automate logon” to activate this function, and configure the expect and send item, if the system receive the character which you configured in “expect” item, CRT will send the message which you configured in “send” item. Usually I will configure the following items, the first will send login the system using root, the second will send the password, and the last one will switch the user which I operate frequently, so I will login the user after switch user root, when I need to do operates in other user, it’s easy for me that I use “exit” and “su - user” to switch without inputting any password, the precondition is you know the password of root.
Tips: for the security, check “Hide” of password item. As for the “Send initial carriage return” item, Check this option if you want SecureCRT to send a carriage return to the remote machine before starting the automated logon script. Because some systems will not display a logon prompt until receiving a carriage return
@Anti-idle & Close Disconnect Session 防呆死和自动关闭断连回话
In option->session options->terminal, the useful item is “Anti-idle”, I use the second option “send protocol NO-OP”, check this item and set the interval as 60 sec, because the system was set to that disconnect automatically if no-response in the specified duration, so this item will make you do something else during a bit of duration between two operations and keep the session alive. The first option “send string” is not useful, because the string sent by CRT which is for Anti-idle will disturb my operation.
And I check “Close on disconnection”, because the anti-idle don’t allow the system cut the session like I don’t wanna, so if the session disconnect, only one reason: I make, if the network is OK, so close that session instead of my operation.
@Colorful Screen
In option->session options->terminal->emulation, set Terminal as “Xterm” and check “ANSI Color” to make CRT can display the colorful character with different attributes.
In option->global options->terminal->appearance->ANSI color, you can define the color which you like.
Sample:
In option->session options->terminal->emulation, you can set the value of “scrollback” bigger, and then you needn’t be afraid you can find the much output in the screen.
@Definition Shortcut 自定义快捷键
In option->session options->terminal->emulation->mapped keys, you can define the shortcut what you like, I configure 3, they are Ctrl+E which is for print exit on the screen, and I just enter “ENTER”, quit quickly, but the pity is I didn’t found how to press “ENTER” to the terminator, so I have to press twice if I wanna exit: Ctrl+E+ENTER, some friend told me you can close the session directly using shortcut “Ctrl+F4”, but this exit operation without logout will make you process hang up in the system for a while, is the abnormal quit, for the system maintenance aspect, it was not suggested. And in my opinion it was should be forbidden like “kill -9”.
The second shortcut is “Ctrl+N” for open a session quickly. The last one is “Alt+V” for pasting quickly, the shortcut from “TTERMPRO” which was used by me for a long time, so I define the familiar shortcut.
If you are familiar with the windows shortcut (Ctrl+C/V), you can check it, but you should read the warning of CRT first, because Most UNIX system will be conflict with this function, better leave this option off like what it prompt.
@Font 自定义字体
In option->session options->terminal->appearance, you can define the font and color in here; normally I will set the font bigger, perhaps for my thick glasses on my nose.
@Striking Title 醒目的标题
In option->session options->terminal->appearance->window, it’s useful to define the unique and striking title for every connection, especially for ones who maintenance lots of system, you must be aware of the priority and risk about every system, because some system is dangerous and more weaker, maybe you will lost your job after you press high risk command in some system without your attentive mind.
@Log Record 日志记录功能
There is the most useful conf item in option -> session options -> terminal -> logfile, I set the log file name as “%H_%S-%Y-%M-%D %h-%m-%s.log”, it’s unique, because the log file will generated and named with the accurate time to second, must be unique, although the %m and %s were not introduced in the below. And check “Start log upon connection”, it will save all the operation when you are using CRT, as you know, sometimes, the history log will not let you regret to cry, and also check “Append to file”, but it’s useless for the unique file name.
Btw, no need care about the size of log file too much, it wont cost too much in your huge disk but useful.
@Printer Configuration 打印功能
option->session options->terminal->printing, this catalog is for your printer, if you have. Normally I needn’t print it, so I pass away.
@Xmode/Zmodem Configuration
option->session options->terminal->Xmodem/Zmodem, this catalog was ignored by me, I prefer using IP message to transfer files rather than CRT.
Above I introduce the configuration item in session options, but actually all of them you can find in global session options and most of them should be configured in there, especially for shortcut/font display/log file etc.
3.
@copy on select & paste on right button 自动复制和右键粘贴
This is personal habit inherited from “TTERMPRO” the last tool I used: copy on select and paste on right button.
@Show Tabs and Vertical Scroll Bar
Check them can help you easily manager convergent windows you opened. Because I check automatic toggle word wrap, so didn’t use horizontal scroll.
@Tabs Configuration 标签卡选项
In here we can configure different and striking color for each tabs, and give them the proper width. In the bottom, select Double-click Close Tab and CTRK+TAB to switch Tabs, like the habit of UE. Suggest check “Confirm when closing multiple”, it will prompt you if you wanna close more than one session directly clicking X button on right-top.
4.
View->Fsull Screen can make the CRT bigger, both of enter and exit shortcut is “ALT+ENTER”.
In Options->global options->general->configuration folder, you can configure the path to save your configuration file, maybe next time you or your friend will use it easily.

加载中…