RedHat 8.0 telnet 연결 좀 해결해주세요..

glims의 이미지

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 실행
------------------------------------

이외에도 더 체크할 사항이 있나요? :?:
고수님들의 도움을 바랍니다.

monpetit의 이미지

telnet은 열리는데 login이 안 되는 걸로 보아서 telnet의 문제는 아닙니다.
게다가 log 파일에 login 에러라고 나와 있으니 pam과 login의 설정 문제로 보입니다.
/etc/pam.d 디렉토리의 login 설정 파일을 살펴 보세요.
아마도 /etc/login.access 파일에 해결의 열쇠가 있을 것 같네요.

glims의 이미지

답변 감사합니다.
그런데 내용을 봐도 잘 몰라서... -.-;;

-----------------------------------
/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 파일은 없는데...

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.