telnet 클라이언트에 대해서는 telnet 문서를 참고하십시오.
- telnet server
- telnet 서버, telnet 서비스, telnet 데몬
1 설치 확인
CentOS 6.0 최소 설치시에는 없었다. telnet과 telnet-server 패키지가 필요하고, telnet-server 패키지에는 xinetd 패키지가 필요하다.
bat
Copy
[root@jmnote ~]# rpm -qa | grep telnet
- → telnet과 telnet-server가 설치되지 않았다.
2 설치
xinetd가 설치되지 않았다면 함께 설치된다.
bat
Copy
[root@jmnote ~]# yum install telnet-server -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package telnet-server.x86_64 1:0.17-47.el6 set to be updated
--> Processing Dependency: xinetd for package: 1:telnet-server-0.17-47.el6.x86_64
--> Running transaction check
---> Package xinetd.x86_64 2:2.3.14-34.el6 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================
Installing:
telnet-server x86_64 1:0.17-47.el6 Daum 36 k
Installing for dependencies:
xinetd x86_64 2:2.3.14-34.el6 Daum 121 k
Transaction Summary
===================================================================================================================================
Install 2 Package(s)
Upgrade 0 Package(s)
Total download size: 157 k
Installed size: 312 k
Downloading Packages:
(1/2): telnet-server-0.17-47.el6.x86_64.rpm | 36 kB 00:00
(2/2): xinetd-2.3.14-34.el6.x86_64.rpm | 121 kB 00:00
-----------------------------------------------------------------------------------------------------------------------------------
Total 30 kB/s | 157 kB 00:05
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : 2:xinetd-2.3.14-34.el6.x86_64 1/2
Installing : 1:telnet-server-0.17-47.el6.x86_64 2/2
Installed:
telnet-server.x86_64 1:0.17-47.el6
Dependency Installed:
xinetd.x86_64 2:2.3.14-34.el6
Complete!
bat
Copy
[root@jmnote ~]# yum install telnet -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package telnet.x86_64 1:0.17-47.el6 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================
Installing:
telnet x86_64 1:0.17-47.el6 Daum 58 k
Transaction Summary
===================================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 58 k
Installed size: 109 k
Downloading Packages:
telnet-0.17-47.el6.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.x86_64 1/1
Installed:
telnet.x86_64 1:0.17-47.el6
Complete!
3 설정 파일 수정
/etc/xinetd.d/telnet 문서를 참고하십시오.
bat
Copy
[root@jmnote ~]# cat /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
}
[root@jmnote ~]# vi /etc/xinetd.d/telnet
disable = yes
을 disable = no
로 바꾸어 저장한다.
4 xinetd 재시작
bat
Copy
[root@jmnote ~]# service xinetd restart
Stopping xinetd: [FAILED]
Starting xinetd: [ OK ]
- Stopping에서 FAILED는 신경쓰지 말자.[1]
5 같이 보기
6 주석
- ↑ 처음 설치하면 stopped이므로 당연히 stop 불가...
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.
- 분류 댓글:
- 리눅스 네트워크 (5)
리눅스 hosts 파일 ― 올해대박리눅스 hosts 파일 ― Jmnote리눅스 nc 포트 열기 ― …우분투 절전모드 해제시 와이파이 안되는 문제 ― D4RT우분투 절전모드 해제시 와이파이 안되는 문제 ― Beyondthelimit