⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 redhat linux 9下telnet的配置和使用--.htm

📁 近日使用liunx 的一些实用资料
💻 HTM
📖 第 1 页 / 共 4 页
字号:
                                <TR>
                                <TD height=7></TD></TR>
                                <TR>
                                <TD vAlign=top align=middle height=33>
                                <P align=left><IMG height=11 
                                src="redhat linux 9下telnet的配置和使用--.files/arrow3.gif" 
                                width=29>您现在的位置: <SPAN class=px12><B><A 
                                class=news 
                                href="http://www.cnpaf.net/Index.html"><FONT 
                                color=red>首页</FONT></A>&gt;&gt;<A class=news 
                                href="http://www.cnpaf.net/Class/ProtocolAll/index.html">协议大全</A>&gt;&gt;<A 
                                class=news 
                                href="http://www.cnpaf.net/Class/Telnet/index.html">TELNET协议</A>&gt;&gt;正文</B></SPAN></P></TD></TR>
                                <TR>
                                <TD 
                          height=7></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
                        <TABLE id=table63 height=5 cellSpacing=0 cellPadding=0 
                        width=730 
                        background="redhat linux 9下telnet的配置和使用--.files/0830_cor_bot.gif" 
                        border=0>
                          <TBODY>
                          <TR>
                            <TD width=5><IMG height=5 
                              src="redhat linux 9下telnet的配置和使用--.files/0830_cor_3.gif" 
                              width=5></TD>
                            <TD width=713></TD>
                            <TD width=5><IMG height=5 
                              src="redhat linux 9下telnet的配置和使用--.files/0830_cor_4.gif" 
                              width=5></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE><BR>
                  <TABLE id=table64 cellSpacing=0 cellPadding=0 width=740 
                  border=0>
                    <TBODY>
                    <TR>
                      <TD vAlign=top>
                        <DIV align=center>
                        <TABLE id=table65 height=5 cellSpacing=0 cellPadding=0 
                        width=730 
                        background="redhat linux 9下telnet的配置和使用--.files/0830_cor_top.gif" 
                        border=0>
                          <TBODY>
                          <TR>
                            <TD width=5><IMG height=5 
                              src="redhat linux 9下telnet的配置和使用--.files/0830_cor_1.gif" 
                              width=5></TD>
                            <TD width=713></TD>
                            <TD width=5><IMG height=5 
                              src="redhat linux 9下telnet的配置和使用--.files/0830_cor_2.gif" 
                              width=5></TD></TR></TBODY></TABLE>
                        <TABLE id=table66 
                        style="BORDER-RIGHT: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid" 
                        cellSpacing=0 cellPadding=0 width=730 bgColor=#ffffff 
                        border=0>
                          <TBODY>
                          <TR>
                            <TD align=middle>
                              <DIV align=center>
                              <TABLE id=table67 cellSpacing=0 cellPadding=0 
                              width=725 border=0>
                                <TBODY>
                                <TR>
                                <TD height=7></TD></TR>
                                <TR>
                                <TD vAlign=top align=middle><B><FONT 
                                size=3>redhat linux 
                                9下telnet的配置和使用</FONT></B></TD></TR>
                                <TR>
                                <TD 
                          height=7></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
                        <TABLE id=table68 height=5 cellSpacing=0 cellPadding=0 
                        width=730 
                        background="redhat linux 9下telnet的配置和使用--.files/0830_cor_bot.gif" 
                        border=0>
                          <TBODY>
                          <TR>
                            <TD width=5><IMG height=5 
                              src="redhat linux 9下telnet的配置和使用--.files/0830_cor_3.gif" 
                              width=5></TD>
                            <TD width=713></TD>
                            <TD width=5><IMG height=5 
                              src="redhat linux 9下telnet的配置和使用--.files/0830_cor_4.gif" 
                              width=5></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE><BR>
                  <TABLE id=table13 cellSpacing=0 cellPadding=0 width=740 
                  border=0>
                    <TBODY>
                    <TR>
                      <TD vAlign=top></TD></TR>
                    <TR>
                      <TD vAlign=top>
                        <DIV align=center>
                        <TABLE id=table14 height=5 cellSpacing=0 cellPadding=0 
                        width=730 
                        background="redhat linux 9下telnet的配置和使用--.files/0830_cor_top.gif" 
                        border=0>
                          <TBODY>
                          <TR>
                            <TD width=5><IMG height=5 
                              src="redhat linux 9下telnet的配置和使用--.files/0830_cor_1.gif" 
                              width=5></TD>
                            <TD width=713></TD>
                            <TD width=5><IMG height=5 
                              src="redhat linux 9下telnet的配置和使用--.files/0830_cor_2.gif" 
                              width=5></TD></TR></TBODY></TABLE>
                        <TABLE id=table15 
                        style="BORDER-RIGHT: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid" 
                        cellSpacing=0 cellPadding=0 width=730 bgColor=#ffffff 
                        border=0>
                          <TBODY>
                          <TR>
                            <TD align=middle>
                              <DIV align=center>
                              <TABLE id=table16 cellSpacing=0 cellPadding=0 
                              width=725 border=0>
                                <TBODY>
                                <TR>
                                <TD height=7></TD></TR>
                                <TR>
                                <TD vAlign=top align=middle>
                                <P><IFRAME align=center marginWidth=0 
                                marginHeight=0 
                                src="redhat linux 9下telnet的配置和使用--.files/544X100.htm" 
                                frameBorder=0 width=700 scrolling=no 
                                height=100></IFRAME></P></TD></TR>
                                <TR>
                                <TD 
                          height=7></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
                        <TABLE id=table17 height=5 cellSpacing=0 cellPadding=0 
                        width=730 
                        background="redhat linux 9下telnet的配置和使用--.files/0830_cor_bot.gif" 
                        border=0>
                          <TBODY>
                          <TR>
                            <TD width=5><IMG height=5 
                              src="redhat linux 9下telnet的配置和使用--.files/0830_cor_3.gif" 
                              width=5></TD>
                            <TD width=713></TD>
                            <TD width=5><IMG height=5 
                              src="redhat linux 9下telnet的配置和使用--.files/0830_cor_4.gif" 
                              width=5></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE><BR>
                  <TABLE cellSpacing=0 cellPadding=0 width=740 border=0>
                    <TBODY>
                    <TR>
                      <TD vAlign=top></TD></TR>
                    <TR>
                      <TD vAlign=top>
                        <DIV align=center>
                        <TABLE height=5 cellSpacing=0 cellPadding=0 width=730 
                        background="redhat linux 9下telnet的配置和使用--.files/0830_cor_top.gif" 
                        border=0>
                          <TBODY>
                          <TR>
                            <TD width=5><IMG height=5 
                              src="redhat linux 9下telnet的配置和使用--.files/0830_cor_1.gif" 
                              width=5></TD>
                            <TD width=713></TD>
                            <TD width=5><IMG height=5 
                              src="redhat linux 9下telnet的配置和使用--.files/0830_cor_2.gif" 
                              width=5></TD></TR></TBODY></TABLE>
                        <TABLE 
                        style="BORDER-RIGHT: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid" 
                        cellSpacing=0 cellPadding=0 width=730 bgColor=#ffffff 
                        border=0>
                          <TBODY>
                          <TR>
                            <TD align=middle>
                              <DIV align=center>
                              <TABLE cellSpacing=0 cellPadding=0 width=715 
                              border=0>
                                <TBODY>
                                <TR>
                                <TD height=7></TD></TR>
                                <TR>
                                <TD><IFRAME align=left marginWidth=0 
                                marginHeight=0 
                                src="redhat linux 9下telnet的配置和使用--.files/468X60.htm" 
                                frameBorder=0 width=468 scrolling=no 
                                height=60></IFRAME></TD></TR>
                                <TR>
                                <TD>
                                <P align=left>
                                <P align=left>Telnet服务的配置步骤如下: 
                                <BR><BR>一、安装telnet软件包(通常要两个) 
                                <BR><BR>1、&nbsp;telnet-client&nbsp;(或&nbsp;telnet),这个软件包提供的是&nbsp;telnet&nbsp;客户端程序; 
                                <BR><BR>2、&nbsp;telnet-server&nbsp;,这个软件包提供的是&nbsp;telnet&nbsp;服务器端程序; 
                                <BR><BR>安装之前先检测是否这些软件包已安装,方法如下: 
                                <BR><BR>[root@wljs&nbsp;root]#rpm&nbsp;–q&nbsp;telnet或[root@wljs&nbsp;root]#rpm&nbsp;–q&nbsp;telnet-client 
                                <BR><BR>[root@wljs&nbsp;root]#rpm&nbsp;–q&nbsp;telnet-server 
                                <BR><BR>如果没有检测到软件包,需要进行安装,red&nbsp;hat&nbsp;linux&nbsp;9默认已安装了telnet软件包,一般只要安装telnet-server软件包。 
                                <BR><BR>1、在red&nbsp;hat&nbsp;linux&nbsp;9的安装盘中获取telnet-server-0.17-25.i386.rpm软件包。 
                                <BR><BR>2、安装软件包 
                                <BR><BR>[root@wljs&nbsp;root]#rpm&nbsp;–i&nbsp;telnet-server-0.17-25.i386.rpm 
                                <BR><BR>二、启动telnet服务 <BR><BR>1、开启服务 
                                <BR><BR>方法一:使用ntsysv,在出现的窗口之中,将&nbsp;telnet前面*加上,然后按下&nbsp;OK&nbsp;。 
                                <BR><BR>方法二:编辑&nbsp;/etc/xinetd.d/telnet 
                                <BR><BR>[root@wljs&nbsp;root]#&nbsp;vi&nbsp;/etc/xinetd.d/telnet 
                                <BR><BR>找到&nbsp;disable&nbsp;=&nbsp;yes&nbsp;将&nbsp;yes&nbsp;改成&nbsp;no&nbsp;。 
                                <BR><BR>2、激活服务 
                                <BR><BR>[root@wljs&nbsp;root]#&nbsp;service&nbsp;xinetd&nbsp;restart 
                                <BR><BR>三、测试服务 
                                <BR><BR>[root@wljs&nbsp;root]#telnet&nbsp;ip(或者hostname) 
                                <BR><BR>如果配置正确,系统提示输入远程机器的用户名和密码 <BR><BR>Login: 
                                <BR><BR>Password: <BR><BR>注:默认只允许普通用户 
                                <BR><BR>四、设置telnet端口 
                                <BR><BR>#vi&nbsp;/etc/services 
                                <BR><BR>进入编辑模式后查找telnet(vi编辑方式下输入/telnet) 
                                <BR><BR>会找到如下内容: <BR><BR>telnet&nbsp;23/tcp 
                                <BR><BR>telnet&nbsp;23/udp 
                                <BR><BR>将23修改成未使用的端口号(如:2000),退出vi,重启telnet服务,telnet默认端口号就被修改了。 
                                <BR><BR>五、Telnet服务限制 
                                <BR><BR>telnet是明文传送口令和数据的,如果你对其默认的设置不满意,有必要对其服务范围进行限制。假设你的主机的ip是210.45.160.17,就可以按如下方式设置了,^_^! 
                                <BR><BR>#vi&nbsp;/etc/xinetd.d/telnet 
                                <BR><BR>service&nbsp;telnet <BR><BR>{ 
                                <BR><BR>disable&nbsp;=&nbsp;no&nbsp;#激活&nbsp;telnet&nbsp;服务,no 
                                <BR><BR>bind&nbsp;=&nbsp;210.45.160.17&nbsp;#your&nbsp;ip 
                                <BR><BR>only_from&nbsp;=&nbsp;210.45.0.0/16&nbsp;#只允许&nbsp;210.45.0.0&nbsp;~&nbsp;210.45.255.255&nbsp;这个网段进入 
                                <BR><BR>only_from&nbsp;=&nbsp;.edu.cn&nbsp;#只有教育网才能进入! 
                                <BR><BR>no_access&nbsp;=&nbsp;210.45.160.{115,116}&nbsp;#这两个ip不可登陆 
                                <BR><BR>access_times=&nbsp;8:00-12:00&nbsp;20:00-23:59&nbsp;#&nbsp;每天只有这两个时间段开放服务 
                                <BR><BR>...... <BR><BR>} 
                                <BR><BR>六、Telnet&nbsp;root用户的登入 
                                <BR><BR>telnet&nbsp;不是很安全,默认的情况之下不允许&nbsp;root&nbsp;以&nbsp;telnet&nbsp;进入&nbsp;Linux&nbsp;主机&nbsp;。若要允许root用户登入,可用下列方法: 
                                <BR><BR>[root&nbsp;@wljs&nbsp;/root]#&nbsp;vi&nbsp;/etc/pam.d/login 
                                <BR><BR>#auth&nbsp;required&nbsp;pam_securetty.so&nbsp;#将这一行加上注释! 
                                <BR><BR>或 
                                <BR><BR>[root@wljs&nbsp;root]#&nbsp;mv&nbsp;/etc/securetty&nbsp;/etc/securetty.bak 
                                <BR><BR>这样,&nbsp;root&nbsp;就可以直接进入&nbsp;Linux&nbsp;主机了。不过,建议不要这样做。也可以在普通用户进入后,切换到root用户,拥有root的权限。 
                                <BR></P>
                                <P></P></TD></TR>
                                <TR>
                                <TD 
                          height=7></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
                        <TABLE height=5 cellSpacing=0 cellPadding=0 width=730 
                        background="redhat linux 9下telnet的配置和使用--.files/0830_cor_bot.gif" 
                        border=0>
                          <TBODY>
                          <TR>
                            <TD width=5><IMG height=5 
                              src="redhat linux 9下telnet的配置和使用--.files/0830_cor_3.gif" 
                              width=5></TD>
                            <TD width=713></TD>
                            <TD width=5><IMG height=5 
                              src="redhat linux 9下telnet的配置和使用--.files/0830_cor_4.gif" 
                              width=5></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE><BR>
                  <TABLE id=table18 cellSpacing=0 cellPadding=0 width=740 
                  border=0>
                    <TBODY>
                    <TR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -