发博文
正文 字体大小:

telnet仿真终端工具secureCRT的配置

(2009-06-16 21:31:30)
标签:

telnet

securecrt

配置

分类: It is my life...

     由于工作相关,经常要使用的telnet的仿真终端工具,感觉secureCRT又非常的好用,尤其是配置的好,会让你的工作事半功倍,在上班的时候写了篇经验文档供其他同事参考,因此是e文的,用我的CET4拼凑了一篇,下班了也顺便贴在blog上来,希望对别人有帮助。

     注:我使用的是5.2.2版本的,属于低版本,另外侧重于telnet,其他ssh/xmodem等功能都无视~

 

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.    Connect to system

In the fist time, you can click this button telnet仿真终端工具secureCRT的配置 to create a new connection, and will appear:

telnet仿真终端工具secureCRT的配置

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  the tab  to open one connection, it will appear:

 

telnet仿真终端工具secureCRT的配置

If you didn’t select “open in a tab”, the new connection will appear in other independent windows like this:

telnet仿真终端工具secureCRT的配置

I think its better set this option on or click the third button telnet仿真终端工具secureCRT的配置 to open a new connection in a tab directly, especially for the situation that you have to open so many sessions.

 

2.    Session Options

@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”

telnet仿真终端工具secureCRT的配置

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.

telnet仿真终端工具secureCRT的配置

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.

telnet仿真终端工具secureCRT的配置

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:

telnet仿真终端工具secureCRT的配置

@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.

telnet仿真终端工具secureCRT的配置

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.

telnet仿真终端工具secureCRT的配置

@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.

telnet仿真终端工具secureCRT的配置

In option->global options->terminal->appearance->ANSI color, you can define the color which you like.

telnet仿真终端工具secureCRT的配置

Sample:

telnet仿真终端工具secureCRT的配置

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.

telnet仿真终端工具secureCRT的配置

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.

telnet仿真终端工具secureCRT的配置

telnet仿真终端工具secureCRT的配置

@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.

telnet仿真终端工具secureCRT的配置

@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.

telnet仿真终端工具secureCRT的配置

@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.

telnet仿真终端工具secureCRT的配置

@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.

telnet仿真终端工具secureCRT的配置

@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.

telnet仿真终端工具secureCRT的配置

 

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.    Global session options

@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.

telnet仿真终端工具secureCRT的配置

@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.

telnet仿真终端工具secureCRT的配置

@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.

telnet仿真终端工具secureCRT的配置

 

4.    Tips

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.

 

 

阅读 评论 收藏 转载 打印举报
已投稿到:
  • 评论加载中,请稍候...

       

    验证码: 请点击后输入验证码 收听验证码

    发评论

    以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

      

    新浪BLOG意见反馈留言板 不良信息反馈 电话:4006900000 提示音后按1键(按当地市话标准计费) 欢迎批评指正

    新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 会员注册 | 产品答疑

    新浪公司 版权所有