회원 로그인
|
ssh 특정 ip만 허용하기
ssh 특정 ip만 허용하기
/etc/hosts.allow
접속 허용할 ip 설정
sshd: 아이피, 아이피
/etc/hosts.deny
접속 차단 설정
/etc/hosts.allow
접속 허용할 ip 설정
sshd: 아이피, 아이피
# # hosts.allow This file contains access rules which are used to # allow or deny connections to network services that # either use the tcp_wrappers library or that have been # started through a tcp_wrappers-enabled xinetd. # # See 'man 5 hosts_options' and 'man 5 hosts_access' # for information on rule syntax. # See 'man tcpd' for information on tcp_wrappers # # #123.456.789.012와 135.790.135.xxx 대역대 ip 허용 sshd: 123.456.789.012, 135.790.135.
/etc/hosts.deny
접속 차단 설정
# # hosts.deny This file contains access rules which are used to # deny connections to network services that either use # the tcp_wrappers library or that have been # started through a tcp_wrappers-enabled xinetd. # # The rules in this file can also be set up in # /etc/hosts.allow with a 'deny' option instead. # # See 'man 5 hosts_options' and 'man 5 hosts_access' # for information on rule syntax. # See 'man tcpd' for information on tcp_wrappers # #모두 차단 sshd: ALLsshd 재시작
service sshd restart
댓글 0개
| 엮인글 0개
113개(3/6페이지)
번호 | 제목 | 글쓴이 | 조회 | 날짜 |
---|---|---|---|---|
73 | [리눅스] remi php55 php.ini 수정 | 푸딩뱃살 | 1741 | 2017.04.03 01:08 |
72 | [리눅스] [warn] module php5_module is already loaded, skipping | 푸딩뱃살 | 2074 | 2017.03.24 02:03 |
71 | [맥] 라이브러리 폴더 보기 | 푸딩뱃살 | 1701 | 2017.03.09 11:34 |
70 | [윈도우] 미러(백업) - robocopy | 푸딩뱃살 | 1700 | 2016.12.16 10:58 |
69 | [리눅스] yum 패치키 갱신/설치 시 경고 | 푸딩뱃살 | 2983 | 2016.10.04 00:30 |
68 | [리눅스] sendmail aliases(별칭) 설정 | 푸딩뱃살 | 2708 | 2016.09.09 15:37 |
67 | [참고] TCP/UDP 포트 목록 | 푸딩뱃살 | 2608 | 2016.07.21 23:50 |
66 | [리눅스] httpd가 start, restart가 안될 때 | 푸딩뱃살 | 3298 | 2016.07.14 11:49 |
65 | [리눅스] 프로세스 PID 구하기 pgrep, pidof | 푸딩뱃살 | 2617 | 2016.06.22 13:58 |
64 | [리눅스] svn 설치 / 저장소 생성 / 저장소 삭제 / 설정 | 푸딩뱃살 | 25351 | 2016.06.13 00:30 |
63 | [리눅스] ip 추출 | 푸딩뱃살 | 2884 | 2015.09.29 20:16 |
62 | [윈도우] 윈도우즈 오류 코드 목록 | 푸딩뱃살 | 3315 | 2015.08.31 16:31 |
61 | [리눅스] 콘솔(터미널) 해상도 변경 | 푸딩뱃살 | 3954 | 2015.07.15 01:32 |
60 | [리눅스] grep 사용 | 푸딩뱃살 | 696 | 2015.05.26 09:37 |
59 | [리눅스] Linux / Unix 고급 Bash 스크립팅 가이드 | 푸딩뱃살 | 3439 | 2015.03.08 00:32 |
58 | [리눅스] httpd.conf 설정 (번역) | 푸딩뱃살 | 21367 | 2015.03.07 23:51 |
57 | [리눅스] tc 명령어를 이용한 트래픽 제한 스크립트 | 푸딩뱃살 | 6423 | 2015.03.07 18:44 |
56 | [리눅스] vsftpd 사용자 계정 설정 | 푸딩뱃살 | 3017 | 2015.01.15 10:20 |
55 | [리눅스] 파티션 정보 확인 fdisk | 푸딩뱃살 | 3744 | 2015.01.14 01:56 |
54 | [리눅스] 로그 파일 설명 | 푸딩뱃살 | 2693 | 2014.12.23 14:50 |