linux中的telnet根基操纵 8090安适门户
yum install telnet* -y 安置telnet
vim /etc/xinetd.d/telnet 改削配置文件
# default: on# description: The telnet server serves telnet sessions; it uses \# unencrypted username/password pairs for authentication.service telnet{ flags = REUSE#socket可重用
socket_type = stream#连接方法为TCP
wait = no#为每个请求启动一个进程
user = root#启动处事的用户为root
server = /usr/sbin/in.telnetd#要激活的进程
log_on_failure += USERID#登录掉败时记录登录用户名
disable = no#启用
instance = 3}配置允许登录的客户端,插手only_from = 192.168.0.2 #只允许192.168.0.2登录配置禁止登录的客户端列表,插手no_access = 192.168.0.{2,3,4} #禁止192.168.0.2、192.168.0.3、192.168.0.4登录设置开放时段,插手access_times = 9:00-12:00 13:00-17:00 # 每天只有这两个时段开放处事(我们的上班时间:P)配置绑定私网的IP地点如192.168.0.2,那么插手bind = 192.168.0.2 各项具体配置可参考xined配置文件属性说明(man xinetd.conf)
/etc/init.d/xinetd restart 重启处事service xinetd restart 重启处事
一般情况下telnet不允许root登录主要为了安适考虑,可以先用普通账号登录,然后再用su -切到root用户
vim /etc/services 针对这个主机改削长途登陆的端口
telnet 23/tcp telnet 23/udp
连接呈现乱码
vim /etc/sysconfig/i18n 添加或改削为
LANG="zh_CN.GB18030"
重启或断开连接从头连接
温馨提示: 本文由杰米博客推荐,转载请保留链接: https://www.jmwww.net/file/pc/12810.html