当前位置: 首页 > news >正文

Install and Enable Telnet server in Ubuntu Linux

转:http://ubuntuguide.net/install-and-enable-telnet-server-in-ubuntu-linux

参考:http://auxnet.org/index.php?option=com_content&view=article&id=62:how-to-install-a-turn-on-telnet-service-on-rhel-fedora-centos-ubuntu-freebsd-debian&catid=1:latest-news&Itemid=50

 本方法也适用于Debian Linux。

Install and Enable Telnet server in Ubuntu Linux

 

1.Install telnet use this command in terminal(Applications/Accessories/Terminal):

sudo apt-get install xinetd telnetd 

2.Edit /etc/inetd.conf using your favourite file editor with root permission,add this line:

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

注意:如果inetd.conf不存在,可以手动创建

3.Edit /etc/xinetd.conf,make its content look like following:

# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}

4.You can change telnet port number by edit /etc/services with this line:

telnet        23/tcp 

5.If you’re not satisfied with default configuration.Edit etc/xinetd.d/telnet, add following:

# default: on
# description: The telnet server serves telnet sessions; it uses
# unencrypted username/password pairs for authentication.
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}

add these lines as you like:(以下内容可以不添加)

only_from = 192.168.120.0/24 #Only users in 192.168.120.0 can access to
only_from = .bob.com #allow access from bob.com
no_access = 192.168.120.{101,105} #not allow access from the two IP.
access_times = 8:00-9:00 20:00-21:00 #allow access in the two times
......

6.Use this command to start telnet server:

sudo /etc/init.d/xinetd restart 

相关文章:

  • ios中tableview的移动添加删除
  • 如何写windbg高级脚本---以访问文件的windbg脚本为例说明
  • 部署与管理ZooKeeper(转)
  • 发送队列的默认队列策略 (linux网络子系统学习 第十一节 )
  • hdu 4159 Indomie (DP,数学概率)
  • c++多线程编程之互斥对象(锁)的使用之----死锁
  • 更新整理本人所有博文中提供的代码与工具(C++,2013.10)
  • Entity Framework 教程(转)
  • 连连看游戏(dfs)【华为上机题目】
  • Xcode5 + phoneGap2.9搭建ios开发环境-配置-测试-归档上传/phoneG...
  • linux硬盘分区与格式化
  • 水仙花数
  • 使用Java泛型实现快速排序(快排,Quicksort)算法
  • 必知:嵌入式入门精华书籍推荐
  • 使用json实现android服务器向客户端传数据
  • 【跃迁之路】【733天】程序员高效学习方法论探索系列(实验阶段490-2019.2.23)...
  • ➹使用webpack配置多页面应用(MPA)
  • ES6--对象的扩展
  • Flex布局到底解决了什么问题
  • LeetCode541. Reverse String II -- 按步长反转字符串
  • Linux编程学习笔记 | Linux多线程学习[2] - 线程的同步
  • Python_网络编程
  • React as a UI Runtime(五、列表)
  • Redash本地开发环境搭建
  • SpiderData 2019年2月23日 DApp数据排行榜
  • windows下如何用phpstorm同步测试服务器
  • 翻译 | 老司机带你秒懂内存管理 - 第一部(共三部)
  • 复习Javascript专题(四):js中的深浅拷贝
  • 复杂数据处理
  • 区块链将重新定义世界
  • 设计模式(12)迭代器模式(讲解+应用)
  • (9)STL算法之逆转旋转
  • (ctrl.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MDd_DynamicDebug”不匹配值“
  • (c语言版)滑动窗口 给定一个字符串,只包含字母和数字,按要求找出字符串中的最长(连续)子串的长度
  • (Python) SOAP Web Service (HTTP POST)
  • (Redis使用系列) SpirngBoot中关于Redis的值的各种方式的存储与取出 三
  • (带教程)商业版SEO关键词按天计费系统:关键词排名优化、代理服务、手机自适应及搭建教程
  • (独孤九剑)--文件系统
  • (二)【Jmeter】专栏实战项目靶场drupal部署
  • (附源码)springboot助农电商系统 毕业设计 081919
  • (附源码)计算机毕业设计SSM在线影视购票系统
  • (剑指Offer)面试题34:丑数
  • (七)理解angular中的module和injector,即依赖注入
  • (一)Neo4j下载安装以及初次使用
  • (转)可以带来幸福的一本书
  • (最简单,详细,直接上手)uniapp/vue中英文多语言切换
  • *** 2003
  • *2 echo、printf、mkdir命令的应用
  • *上位机的定义
  • .[hudsonL@cock.li].mkp勒索病毒数据怎么处理|数据解密恢复
  • .bat文件调用java类的main方法
  • .dat文件写入byte类型数组_用Python从Abaqus导出txt、dat数据
  • .NET Core SkiaSharp 替代 System.Drawing.Common 的一些用法
  • .Net MVC + EF搭建学生管理系统
  • .Net环境下的缓存技术介绍