Linux Telnet服务的相关设置

网络 网络管理
文章摘要:对于Linux Telnet服务的一些安装和设置问题,我们在文章中都进行了介绍,希望能够对大家有所帮助。

对于Linux来说,是有一些操作是比较麻烦的。在一些协议的安装中,就能体现。那么我们就来介绍一下Linux Telnet服务的安装的过程。学习SUSE Linux系统时,经常会遇到SUSE Linux系统问题,这里将介绍SUSE下Telnet服务的配置 。做为远程控制Linux操作系统最简单的办法就是采用Telnet服务登入,然后可以执行一些列的操作如VI编辑器等,对于SUSE Linux系统,更增加了一个可以通过Telnet登入系统即可实现类似图形界面的管理平台YAST控制中心,通过YAST可以管理SUSE Linux的几乎所有功能。

下面将就SUSE Linux Enterprise Server 9 下的Telnet服务增加以及YAST管理等做一个详细介绍。SUSE Linux Enterprise Server 9 (64bit)操作系统版本已经自动安装有Telnet服务,只需要修改一下配置文件即可使用该服务。如果您采用的是 SUSE Linux Enterprise Server 9 (32bit)版本则需要安装Linux Telnet服务RPM包。
RPM包安装方法:

rpm -ivh Telnet-server-1.1-38.i586.rpm  
//在SHELL环境下运行RPM安装命令,系统将自动启动YAST管理程序,然后根据提示放入光盘即可完成Telnet服务的安装。  
start Telnet services:   
//启动Telnet服务  
vi /etc/xinetd.d/Telnet  
//更改服务配置文件( SUSE Linux Enterprise Server 9 (64bit)只需要修改此配置文件即可) 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.

配置文件内容如下:

/etc/xinetd.d/Telnet  
#default: off  
#description: Telnet is the old login server which is INSECURE and should \  
#therefore not be used. Use secure shell (openssh).  
#If you need Telnetd not to "keep-alives" (e.g. if it runs over a ISDN \  
#uplink), add "-n".  See 'man Telnetd' for more details.  
service Telnet  
{  
socket_type = stream 
protocoltcp 
waitno 
userroot 
server  = /usr/sbin/in.Telnetd  
disable = no 

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.

将其中的disable = yes --->> disable = no//允许系统启动该服务。

chkconfig Telnet on//检查服务是否正常  
/etc/init.d/xinetd restart  //重新启动xinetd服务  
Change Telnet port?//安全起见更改Linux Telnet服务端口  
vi /etc/services //编辑services配置文件  
Search "Telnet" and change udp&tcp ports:23 to 11123.  //更改服务端口  
/etc/init.d/xinetd restart//重新启动xinetd服务 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.

为了安全起见默认的情况下是不允许root用户直接Telnet系统的,您先可以通过普通的用户Telnet入系统之后再通过SU命令提升自己的权限(推荐这样做)。但是如果您一定想用ROOT用户直接登陆的话也有一个办法:

For root user can use Telnet?  //让root用户直接Telnet登入  
vi /etc/pam.d/login//编辑/etc/pam.d/login 文件  
#auth required /lib/security/pam_security.so //将这一行注释掉  
And rename "/etc/securetty", securetty.bak//将这个安全文件重命名(以后想用的时候还可以还原过来) 
  • 1.
  • 2.
  • 3.
  • 4.

这些工作做完之后当然您要在YAST的system->Runleveleditor管理里面把xinetd设置为ENABLED,这样系统下次重新启动的时候就会自动启动该服务,默认xinetd的设置为DIABLED!通过我的介绍你应该简单的了解SUSE Linux Telnet服务的配置了。希望本文对你有所帮助。

责任编辑:佟健 来源: csdn.net
相关推荐

2010-07-22 14:24:13

telnet服务

2010-07-19 14:00:30

Telnet服务

2010-07-22 12:15:59

Batch Telne

2010-07-17 01:20:00

Telnet服务

2010-07-15 10:24:25

Microsoft T

2009-10-14 09:38:45

linux telne服务开启linux

2010-07-19 11:50:44

Linux Telne

2010-07-26 16:15:07

Telnet服务器

2010-07-20 15:28:34

2010-07-15 10:37:19

Win2000 Tel

2010-07-21 09:28:46

Ubuntu Linu

2010-07-20 10:49:07

Telnet会话

2010-07-20 13:41:30

Telnet服务器

2010-07-21 16:04:26

telnet服务器

2010-07-27 14:55:29

Telnet 23

2010-07-21 09:46:39

SuSE Telnet

2010-07-23 10:29:54

Win2000 Tel

2010-07-19 16:55:51

Telnet命令

2010-07-20 14:55:16

Telnet端口

2009-11-26 15:41:02

SUSE LINUX系
点赞
收藏

51CTO技术栈公众号