ubuntu 12.04安装telnet
2015-07-25 21:48
274 查看
转自: http://blog.csdn.net/ruglcc/article/details/7804377
1. sudo apt-get install xinetd telnetd
sudo vi /etc/inetd.conf
并加入以下一行,假如没有发现这个文件,自己新建立一个也是可以的哦,刚开始我也不知道,自己试了之后才知道的。
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
3. sudo vi /etc/xinetd.conf
并加入以下内容:
# 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
}
includedir /etc/xinetd.d
4. sudo vi /etc/xinetd.d/telnet并加入以下内容:
# 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
}
5. 重启机器或重启网络服务
sudo /etc/init.d/xinetd restart
1. sudo apt-get install xinetd telnetd
sudo vi /etc/inetd.conf
并加入以下一行,假如没有发现这个文件,自己新建立一个也是可以的哦,刚开始我也不知道,自己试了之后才知道的。
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
3. sudo vi /etc/xinetd.conf
并加入以下内容:
# 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
}
includedir /etc/xinetd.d
4. sudo vi /etc/xinetd.d/telnet并加入以下内容:
# 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
}
5. 重启机器或重启网络服务
sudo /etc/init.d/xinetd restart
相关文章推荐
- ,典型递归问题-F(1025)mod 5 的值
- 17.Letter Combinations of a Phone Number(Map; recursion)
- Android 四大组件学习之BroadcastReceiver二
- haproxy path_beg,path_end ,hdr_beg
- iOS 记住密码\自动登录
- 网页制作之html基础学习2-标签
- Android学习笔记之如何使用圆形菜单实现旋转效果...
- java静态代码块
- STL vector的N种构造方式
- JavaSE基础部分--(一)
- MSP430F5529的IO口管脚的中断学习笔记
- 5-从尾到头打印链表
- 计算机物理学-刚体动力学(2)
- 网页制作之html基础学习1-简介
- 画圆方法小结
- 构建一个docker 的java编译环境
- PAT (Advanced Level) 1045. Favorite Color Stripe (30) LCS变种,动态规划
- 连动菜单---【菜鸟自娱】
- Android界面之ViewPager
- linux基础知识二