리눅스

 

 

 

 

<telnet 이 설치되었는지 확인>


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

 

 

<telnet 서버 설치>

[root@localhost ~]# yum -y install telnet-server

 


<telent 시작>


[root@localhost ~]# systemctl restart telnet.socket

[root@localhost ~]# systemctl status telnet.socket 
● telnet.socket - Telnet Server Activation Socket
   Loaded: loaded (/usr/lib/systemd/system/telnet.socket; disabled; vendor preset: disabled)
   Active: active (listening) since 금 2017-03-31 16:31:07 KST; 51s ago
     Docs: man:telnetd(8)
   Listen: [::]:23 (Stream)
 Accepted: 0; Connected: 0

 3월 31 16:31:07 localhost.localdomain systemd[1]: Listening on Telnet Serve...
 3월 31 16:31:07 localhost.localdomain systemd[1]: Starting Telnet Server Ac...
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]# 

 


<telnet 상태 확인 >
[root@localhost ~]# systemctl status  telnet.socket
● telnet.socket - Telnet Server Activation Socket
   Loaded: loaded (/usr/lib/systemd/system/telnet.socket; disabled; vendor preset: disabled)
   Active: active (listening) since 월 2017-04-03 18:53:03 KST; 2min 1s ago
     Docs: man:telnetd(8)
   Listen: [::]:23 (Stream)
 Accepted: 0; Connected: 0

 4월 03 18:53:03 localhost.localdomain systemd[1]: Listening on Telnet Serve...
 4월 03 18:53:03 localhost.localdomain systemd[1]: Starting Telnet Server Ac...
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]# 

 

 


<비밀번호 설정>
[root@localhost ~]# adduser teluser
[root@localhost ~]# passwd teluser
teluser 사용자의 비밀 번호 변경 중
새  암호:1111
잘못된 암호: 암호가 앞뒤 어느쪽에서 읽어도 같은 문맥임
새  암호 재입력:1111
passwd: 모든 인증 토큰이 성공적으로 업데이트 되었습니다.
[root@localhost ~]# 

 


<telnet 클라이언트 설치>
[root@localhost ~]# yum -y install telnet

 


<telnet 접속 - 자기 자신 주소 127.0.0.1 로 접속>
[root@localhost ~]# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

Kernel 3.10.0-514.el7.x86_64 on an x86_64
localhost login: teluser
Password: 
[teluser@localhost ~]$ 

 


<telnet 접속 확인>
[teluser@localhost ~]$ ls
[teluser@localhost ~]$ whoami
teluser

 


<telnet 종료>
#exit
[teluser@localhost ~]$ exitConnection closed by foreign host.
[root@localhost ~]# 

 


<telnet 을 외부에서 접속하기 위해서는 방화벽 설정>
[root@localhost ~]# firewall-config

=>설정값을 영구적 =>telnet 체크 =>옵션 에서 firewalld 다시불러오기
=>종료


<재부팅 후에도 설정값 유지>
[root@localhost ~]# systemctl enable telnet.socket
Created symlink from /etc/systemd/system/sockets.target.wants/telnet.socket to
/usr/lib/systemd/system/telnet.socket.
[root@localhost ~]#

 

 

<window8에서 접속>
cmd > telnet 192.168.111.100


 

 

 

 

 

 

 

 

 

 

 

 

 

about author

PHRASE

Level 60  머나먼나라

Children have the qualities of the parents. (자식은 양친의 성격을 이어 받는다.)

댓글 ( 4)

댓글 남기기

작성
  •    
  •    
  •