linux服務器配置telnet

1、安裝telnet-server

查詢是否安裝telnet-serversession

rpm -qa |grep telnet-serversocket

 

若是未安裝,進行telnet-server安裝tcp

 

yum install telnet-server

 

2、安裝xinetdspa

查詢是否安裝xinetdrest

rpm -qa | grep xinetd

若是沒有進行安裝,使用yum進行安裝code

yum install xinetd

 

3、配置能夠telent登陸server

修改文件: yum install xinetd,註釋掉disable或者改成noblog

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

修改/etc/securetty文件,新增能夠訪問終端數,增長pts數量ip

console vc/1 vc/2 vc/3 vc/4 vc/5 vc/6 vc/7 vc/8 vc/9 vc/10 vc/11 tty1 tty2 tty3 tty4 tty5 tty6 tty7 tty8 tty9 tty10 tty11 pts/0 pts/1 pts/2 pts/3 pts/4 pts/5 pts/6 pts/7 pts/8 pts/9 pts/10

修改端口(根據實際狀況修改):it

修改文件/etc/services將文件中:

telnet 8902/tcp

telnet 8902/udp

 

4、重啓xinetd

service xinetd restart
相關文章
相關標籤/搜索