RedHat 8.0 telnet 연결 좀 해결해주세요..
telnet 연결과 관련된 게시판 글들을 보고 해보았는데도 안되는군요.
환경 : RedHat 8.0
IP : 공인IP(회사)
파이어월 : 회사내 설치되어 있고 서버 및 PC도 모두 파이어월 안에 있음
증상 : 리눅스 서버에서 타 서버로의 telnet은 잘 됨
PC에서 리눅스 서버로 ping은 되나 telnet이 않됨
telnet은 않되나 22번 포트로 ssh은 연결됨(root만)
----------------------
test1 으로 telnet 연결시
Red Hat Linux release 8.0 (Psyche)
Kernel 2.4.18-14smp on an i686
login: test1
Password:
Login incorrect
-------------------
/var/log/messages 내용
Sep 4 08:40:18 SERVER login(pam_unix)[1364]: authentication failure; logname= uid=0 euid=0 tty=pts/1 ruser= rhost=211-xxx-xxx-xxx.rev.krline.net user=test1
Sep 4 08:40:20 SERVER login[1364]: FAILED LOGIN 1 FROM 211-xxx-xxx-xxx.rev.krline.net FOR test1, Authentication failure
기 조치된 사항들
--------------------------------
/etc/services 내용
ftp 21/tcp
ftp 21/udp fsp fspd
ssh 22/tcp # SSH Remote Login Protocol
ssh 22/udp # SSH Remote Login Protocol
telnet 23/tcp
telnet 23/udp
-------------------------------
/etc/xinetd.d/telnet 내용
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
------------------------------------
# ps -ef | grep xinetd
root 742 1 0 Sep03 ? 00:00:00 xinetd -stayalive -reuse -pidfil
root 1372 1323 0 08:51 pts/0 00:00:00 grep xinetd
------------------------------------
#> setup 세팅
Firewall configuration -> Secure Level Medium(*) -> Customize
-> [*]FTP, [*]Telnet
------------------------------------
/etc/hosts.allow 와 /etc/hosts.deny 의 내용
아무것도 없음
------------------------------------
# iptables -F 실행
------------------------------------
이외에도 더 체크할 사항이 있나요? :?:
고수님들의 도움을 바랍니다.
telnet은 열리는데 login이 안 되는 걸로 보아서 telnet의
telnet은 열리는데 login이 안 되는 걸로 보아서 telnet의 문제는 아닙니다.
게다가 log 파일에 login 에러라고 나와 있으니 pam과 login의 설정 문제로 보입니다.
/etc/pam.d 디렉토리의 login 설정 파일을 살펴 보세요.
아마도 /etc/login.access 파일에 해결의 열쇠가 있을 것 같네요.
-----
http://monpetit.posterous.com/
http://monpetit.tistory.com/
답변 감사합니다.
답변 감사합니다.
그런데 내용을 봐도 잘 몰라서... -.-;;
-----------------------------------
/etc/pam.d/login 의 내용
#%PAM-1.0
auth required /lib/security/pam_securetty.so
auth required /lib/security/pam_stack.so service=system-auth
auth required /lib/security/pam_nologin.so
account required /lib/security/pam_stack.so service=system-auth
password required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth
session optional /lib/security/pam_console.so
--------------------------------------------------------
:arrow: 여기서 수정해야 될 사항이 있나요?
그리고 /etc/login.access 파일은 없는데...
댓글 달기