📄 redhat linux 9下telnet的配置和使用--.htm
字号:
<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>>><A class=news
href="http://www.cnpaf.net/Class/ProtocolAll/index.html">协议大全</A>>><A
class=news
href="http://www.cnpaf.net/Class/Telnet/index.html">TELNET协议</A>>>正文</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、 telnet-client (或 telnet),这个软件包提供的是 telnet 客户端程序;
<BR><BR>2、 telnet-server ,这个软件包提供的是 telnet 服务器端程序;
<BR><BR>安装之前先检测是否这些软件包已安装,方法如下:
<BR><BR>[root@wljs root]#rpm –q telnet或[root@wljs root]#rpm –q telnet-client
<BR><BR>[root@wljs root]#rpm –q telnet-server
<BR><BR>如果没有检测到软件包,需要进行安装,red hat linux 9默认已安装了telnet软件包,一般只要安装telnet-server软件包。
<BR><BR>1、在red hat linux 9的安装盘中获取telnet-server-0.17-25.i386.rpm软件包。
<BR><BR>2、安装软件包
<BR><BR>[root@wljs root]#rpm –i telnet-server-0.17-25.i386.rpm
<BR><BR>二、启动telnet服务 <BR><BR>1、开启服务
<BR><BR>方法一:使用ntsysv,在出现的窗口之中,将 telnet前面*加上,然后按下 OK 。
<BR><BR>方法二:编辑 /etc/xinetd.d/telnet
<BR><BR>[root@wljs root]# vi /etc/xinetd.d/telnet
<BR><BR>找到 disable = yes 将 yes 改成 no 。
<BR><BR>2、激活服务
<BR><BR>[root@wljs root]# service xinetd restart
<BR><BR>三、测试服务
<BR><BR>[root@wljs root]#telnet ip(或者hostname)
<BR><BR>如果配置正确,系统提示输入远程机器的用户名和密码 <BR><BR>Login:
<BR><BR>Password: <BR><BR>注:默认只允许普通用户
<BR><BR>四、设置telnet端口
<BR><BR>#vi /etc/services
<BR><BR>进入编辑模式后查找telnet(vi编辑方式下输入/telnet)
<BR><BR>会找到如下内容: <BR><BR>telnet 23/tcp
<BR><BR>telnet 23/udp
<BR><BR>将23修改成未使用的端口号(如:2000),退出vi,重启telnet服务,telnet默认端口号就被修改了。
<BR><BR>五、Telnet服务限制
<BR><BR>telnet是明文传送口令和数据的,如果你对其默认的设置不满意,有必要对其服务范围进行限制。假设你的主机的ip是210.45.160.17,就可以按如下方式设置了,^_^!
<BR><BR>#vi /etc/xinetd.d/telnet
<BR><BR>service telnet <BR><BR>{
<BR><BR>disable = no #激活 telnet 服务,no
<BR><BR>bind = 210.45.160.17 #your ip
<BR><BR>only_from = 210.45.0.0/16 #只允许 210.45.0.0 ~ 210.45.255.255 这个网段进入
<BR><BR>only_from = .edu.cn #只有教育网才能进入!
<BR><BR>no_access = 210.45.160.{115,116} #这两个ip不可登陆
<BR><BR>access_times= 8:00-12:00 20:00-23:59 # 每天只有这两个时间段开放服务
<BR><BR>...... <BR><BR>}
<BR><BR>六、Telnet root用户的登入
<BR><BR>telnet 不是很安全,默认的情况之下不允许 root 以 telnet 进入 Linux 主机 。若要允许root用户登入,可用下列方法:
<BR><BR>[root @wljs /root]# vi /etc/pam.d/login
<BR><BR>#auth required pam_securetty.so #将这一行加上注释!
<BR><BR>或
<BR><BR>[root@wljs root]# mv /etc/securetty /etc/securetty.bak
<BR><BR>这样, root 就可以直接进入 Linux 主机了。不过,建议不要这样做。也可以在普通用户进入后,切换到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 + -