본문 바로가기

TroubleShooting/Linux

centos 에서 telent 서버 동작

728x90
centos 에서는 telnet 서버는 xinetd 설정파일에서 기본적으로 서비스안되도록 되어있다.

# 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

}

 
 "disable = no" 를 "yes" 로 변경하고, /etc/securetty 파일에 pts/X 를 추가한다.
# vi /etc/securetty

...
tty8

tty9

tty10

tty11

pts/1

pts/2

pts/3

pts/4