Ubuntu Linux telnet的安装设置(1)


在Windows系统中,telnet的配置相对简单一些。那么在Ubuntu Linux中的telnet的设置就相对比较麻烦了。不少朋友都对这个安装过程不熟悉。没有关系,这里我们就来对Ubuntu Linux telnet的安装设置进行一下讲解。

1. sudo apt-get install xinetd telnetd

2. Ubuntu Linux telnet安装后,系统也会有相应提示:

sudo vi /etc/inetd.conf并加入以下一行

  1. telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd 

3. sudo vi /etc/xinetd.conf并加入以下内容进行下一步的Ubuntu Linux telnet设置:

  1. # Simple configuration file for xinetd  
  2. #  
  3. # Some defaults, and include /etc/xinetd.d/  
  4. defaults  
  5. {  
  6. # Please note that you need a log_type line to be able to use log_on_success  
  7. # and log_on_failure. The default is the following :  
  8. log_type = SYSLOG daemon info  
  9. instances = 60 
  10. log_type = SYSLOG authpriv  
  11. log_on_success = HOST PID  
  12. log_on_failure = HOST 
  13. cps = 25 30  
  14. }  
  15. includedir /etc/xinetd.d 

4. sudo vi /etc/xinetd.d/telnet并加入以下内容:

  1. # default: on  
  2. # description: The telnet server serves telnet sessions; it uses \  
  3. # unencrypted username/password pairs for authentication.  
  4. service telnet  
  5. {  
  6. disable = no 
  7. flags = REUSE 
  8. socket_type = stream 
  9. wait = no 
  10. user = root 
  11. server = /usr/sbin/in.telnetd  
  12. log_on_failure += USERID  

5. 重启机器或重启网络服务sudo /etc/init.d/xinetd restart

6. 使用TELNET客户端远程登录即可进行非root用户访问.

7.使用root登录:

mv /etc/securetty /etc/securetty.bak 这样root可以登录了.也可这样:

修改/etc/pam.d/login这个文件.只需将下面一行注释掉即可.

  1. #auth required lib/security/pam_securetty.so 

8. Ubuntu Linux telnet的详细配制/etc/xinetd.d/telnet


相关内容

    暂无相关文章