zoukankan      html  css  js  c++  java
  • Ubuntu安装telnet

    安装

    # sudo apt-get install xinetd telnetd

    配置 -> 加入以下选项

    # sudo vi /etc/inetd.conf
    telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
    
    # sudo vi /etc/xinetd.conf
    defaults 
    {
    instances = 60 
    log_type = SYSLOG 
    authpriv log_on_success = HOST PID 
    log_on_failure = HOST 
    cps = 25 30
    }
    
    includedir /etc/xinetd.d
    
    # sudo vi /etc/xinetd.d/telnet
    service telnet 
    {
    disable = no 
    flags = REUSE 
    socket_type = stream 
    wait = no 
    user = root
    server = /usr/sbin/in.telnetd 
    log_on_failure += USERID 
    }

    重启

    # sudo /etc/init.d/xinetd restart

    root登录

    # sudo vi /etc/pam.d/login
    #auth required lib/security/pam_securetty.so
  • 相关阅读:
    NIO学习
    XML(二)
    IO和NIO
    Log4j
    异常处理机制
    XML
    数据交互
    分页实现的三种方式
    Idea破解
    数据库连接池
  • 原文地址:https://www.cnblogs.com/zhangxuechao/p/11709682.html
Copyright © 2011-2022 走看看