Ace-T's Blog 내 검색 [네이버 커넥트 이웃 합니다~^-^/ 요청 大 환영~~]

리눅스 - telnet 설치 및 사용하기

OS/Linux&Unix 2014.02.06 01:37
[Good Comment!!, Good Discussion!!, Good Contens!!]
[ If you think that is useful, please click the finger on the bottom~^-^good~ ]
by ace-T



node.js를 테스트 하다가...telnet을 해야하는데...아래처럼 되질 않았다..


[root@localhost nodejs]# telnet localhost 8000

-bash: telnet: command not found

[root@localhost nodejs]# telnet

-bash: telnet: command not found

[root@localhost nodejs]# rpm -qa | grep telnet

[root@localhost nodejs]# cat /etc/xinetd.d/telnet

cat: /etc/xinetd.d/telnet: No such file or directory


<< 아래처럼 설치!! >>

[root@localhost nodejs]# yum install telnet-server  <---- 설치!! 명령어(CentOS)

Loaded plugins: fastestmirror, priorities, refresh-packagekit, security

Loading mirror speeds from cached hostfile

 * base: centos.mirror.cdnetworks.com

 * extras: centos.mirror.cdnetworks.com

 * updates: ftp.daum.net

base                                                     | 3.7 kB     00:00

dag                                                      | 1.9 kB     00:00

extras                                                   | 3.4 kB     00:00

newrelic                                                 |  951 B     00:00

updates                                                  | 3.4 kB     00:00

updates/primary_db                                       | 1.4 MB     00:00

19 packages excluded due to repository priority protections

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package telnet-server.x86_64 1:0.17-47.el6_3.1 will be installed

--> Processing Dependency: xinetd for package: 1:telnet-server-0.17-47.el6_3.1.x86_64

--> Running transaction check

---> Package xinetd.x86_64 2:2.3.14-39.el6_4 will be installed

--> Finished Dependency Resolution


Dependencies Resolved


================================================================================

 Package              Arch          Version                   Repository   Size

================================================================================

Installing:

 telnet-server        x86_64        1:0.17-47.el6_3.1         base         37 k

Installing for dependencies:

 xinetd               x86_64        2:2.3.14-39.el6_4         base        121 k


Transaction Summary

================================================================================

Install       2 Package(s)


Total download size: 158 k

Installed size: 313 k

Is this ok [y/N]: y

Downloading Packages:

(1/2): telnet-server-0.17-47.el6_3.1.x86_64.rpm          |  37 kB     00:00

(2/2): xinetd-2.3.14-39.el6_4.x86_64.rpm                 | 121 kB     00:00

--------------------------------------------------------------------------------

Total                                           1.3 MB/s | 158 kB     00:00

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing : 2:xinetd-2.3.14-39.el6_4.x86_64                              1/2

  Installing : 1:telnet-server-0.17-47.el6_3.1.x86_64                       2/2

  Verifying  : 2:xinetd-2.3.14-39.el6_4.x86_64                              1/2

  Verifying  : 1:telnet-server-0.17-47.el6_3.1.x86_64                       2/2


Installed:

  telnet-server.x86_64 1:0.17-47.el6_3.1


Dependency Installed:

  xinetd.x86_64 2:2.3.14-39.el6_4


Complete!  ☜  완료!!


다시 해보면 아래와 같이 설치되어있는 것을 볼 수가 있다.

[root@localhost nodejs]# rpm -qa | grep telnet

telnet-server-0.17-47.el6_3.1.x86_64


vi /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_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
        disable         = yes
}

disable을 no 로 수정!!  슈퍼데몬에서 텔넷데몬 disable -> no

재시작~~
[root@localhost nodejs]# service xinetd restart    
Stopping xinetd:                                           [FAILED]
Starting xinetd:                                           [  OK  ]

호스트파일 확인~!
 vi /etc/hosts

[root@localhost nodejs]# service network restart
Shutting down interface eth0:  Device state: 3 (disconnected)
                                                           [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  Active connection state: activating
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/2
state: activated
Connection activated


[root@localhost ~]# vi /etc/sysconfig/iptables
[root@localhost ~]# /etc/init.d/iptables restart
iptables: Setting chains to policy ACCEPT: nat mangle filte[  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:                               [  OK  ]
iptables: Applying firewall rules:                         [  OK  ]



[root@localhost etc]# find / -name telnet
/etc/xinetd.d/telnet



<< 참조 사이트 >>
http://www.greenidc.co.kr/gnuboard4/bbs/board.php?bo_table=linux&wr_id=240
http://ibabo.tistory.com/147
http://blog.naver.com/PostView.nhn?blogId=kr0191&logNo=140049914623
http://www.linux.com/learn/answers/view/1246-why-do-we-get-unrecognised-service-on-giving-command-service-telnet-start
http://computist.tistory.com/42
http://www.greenidc.co.kr/gnuboard4/bbs/board.php?bo_table=linux&wr_id=240

아...안된다 ㅋㅋㅋㅋㅋㅋ 아놔...ㅠ.ㅠ..

     - not yet finish.. -

ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ Telnet...Client를 설치를 하지 않았었다...OTL

Telnet Client Setting - CentOS

[root@localhost ~]# yum install telnet -y
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: centos.mirror.cdnetworks.com
 * extras: centos.mirror.cdnetworks.com
 * updates: ftp.daum.net
19 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package telnet.x86_64 1:0.17-47.el6_3.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package         Arch            Version                    Repository     Size
================================================================================
Installing:
 telnet          x86_64          1:0.17-47.el6_3.1          base           58 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 58 k
Installed size: 109 k
Downloading Packages:
telnet-0.17-47.el6_3.1.x86_64.rpm                        |  58 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:telnet-0.17-47.el6_3.1.x86_64                              1/1
  Verifying  : 1:telnet-0.17-47.el6_3.1.x86_64                              1/1

Installed:
  telnet.x86_64 1:0.17-47.el6_3.1

Complete!


[root@localhost ~]# telnet localhost
Trying ::1...
Connected to localhost.
Escape character is '^]'.
CentOS release 6.5 (Final)
Kernel 2.6.32-431.el6.x86_64 on an x86_64
login:

ㅠ_ㅠ...이제 되는구나...아흑~
참고 사이트 : http://jmnote.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_%ED%85%94%EB%84%B7_%ED%81%B4%EB%9D%BC%EC%9D%B4%EC%96%B8%ED%8A%B8


   - END -










저작자 표시 비영리 변경 금지
신고

'OS > Linux&Unix' 카테고리의 다른 글

펌] linux 디스크 용량 확인(df / du)  (0) 2016.01.19
Curl 이란?  (0) 2015.12.03
리눅스 - telnet 설치 및 사용하기  (0) 2014.02.06
리눅스 현재 사용 포트 확인 방법  (0) 2013.06.03
.profile vs .bash_profile vs .bashrc  (0) 2013.06.02
우분투에서 JDK 셋팅  (0) 2013.06.02

acet 박태하가 추천하는 readtrend 추천글!

설정

트랙백

댓글

:::: facebook을 이용하시는 분들은 로그인 후 아래에 코멘트를 남겨주세요 ::::

티스토리 툴바