ssh 보안설정 > 리눅스 Tip

본문 바로가기
사이트 내 전체검색

리눅스 Tip

ssh 보안설정

페이지 정보

본문

1) /etc/hosts.deny 을 열어서 아래처럼 변경하여 줍니다.  sshd: ALL 은 모든  ssh 로그인을 금지한다는 것입니다. 설사 아이디 및 비번이 맞아도 접근이 되지 않습니다.

#
# hosts.deny        This file describes the names of the hosts which are
#                *not* allowed to use the local INET services, as decided
#                by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow.  In particular
# you should know that NFS uses portmap!      sshd : ALL
sshd : ALL

2) 다음에  /etc/hosts.allow 을 열어서 아래처럼 변경합니다. 아래에 등록된 IP 만 접속이 가능합니다. 그 외는 접속자체가 불가 합니다.

#
# hosts.allow        This file describes the names of the hosts which are
#                allowed to use the local INET services, as decided
#                by the '/usr/sbin/tcpd' server.
#
sshd : 111.111.111.111: ALLOW
sshd : 111.111.111.112: ALLOW
sshd : 111.111.111.113: ALLOW

3) 위처럼 한 다음 아래처럼 ssh 를 재 시작하면 완료됩니다

# service sshd restart

댓글목록

등록된 댓글이 없습니다.

Total 289건 1 페이지
리눅스 Tip 목록
번호 제목 글쓴이 조회 날짜
289 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 4497 11-19
288 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 6137 08-15
287 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 6012 08-15
286 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 3431 08-10
285 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 5750 05-18
284 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 2998 05-18
283 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 3195 05-18
282 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 3419 03-01
열람중 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 3262 01-31
280 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 2871 01-30
279 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 2842 01-30
278 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 3675 11-11
277 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 2347 11-09
276 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 3469 11-05
275 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 3400 09-16
274 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 3981 08-22

검색

회원로그인

회원가입

사이트 정보

컴퓨터 정보,윈도우즈,리눅스,포토샵,3ds
맥스,프로그래밍 강좌팁

접속자집계

오늘
274
어제
324
최대
5,287
전체
629,821
Copyright © www.qdata.co.kr All rights reserved.