회원 로그인
|
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개(4/6페이지)
번호 | 제목 | 글쓴이 | 조회 | 날짜 |
---|---|---|---|---|
53 | [리눅스] 네트워크 설정 | 푸딩뱃살 | 4833 | 2014.12.06 01:37 |
>> | [리눅스] ssh 특정 ip만 허용하기 | 푸딩뱃살 | 4246 | 2014.12.06 00:44 |
51 | [리눅스] 메모리 사용율 script | 푸딩뱃살 | 3071 | 2014.12.02 15:15 |
50 | [리눅스] 명령어 리스트 | 푸딩뱃살 | 3335 | 2014.12.02 14:57 |
49 | [리눅스] CPU 사용율 script | 푸딩뱃살 | 5390 | 2014.12.02 13:03 |
48 | [리눅스] 시스템 종료 shutdown, 시스템 재시작 reboot | 푸딩뱃살 | 6314 | 2014.12.01 14:37 |
47 | [리눅스] 부팅 시 자동 실행 | 푸딩뱃살 | 1613 | 2014.12.01 14:09 |
46 | [리눅스] 데몬 용도 정리 | 푸딩뱃살 | 4278 | 2014.11.25 11:13 |
45 | [리눅스] configure: error: no acceptable C compiler found in $PATH | 푸딩뱃살 | 2687 | 2014.11.19 02:40 |
44 | [리눅스] 서비스 설정 ntsysv | 푸딩뱃살 | 2983 | 2014.10.02 12:10 |
43 | [리눅스] 접근 제어 hosts.allow / hosts.deny | 푸딩뱃살 | 3123 | 2014.10.01 12:41 |
42 | [리눅스] 부팅 시간 확인 last | 푸딩뱃살 | 3283 | 2014.09.22 16:34 |
41 | [리눅스] 원격제어 - TigerVNC, vncserver | 푸딩뱃살 | 3219 | 2014.09.22 12:02 |
40 | [리눅스] sendmail, dovecot, roundcube webmail 사용 시 에러 | 푸딩뱃살 | 3275 | 2014.09.17 16:15 |
39 | [윈도우] 윈도우7 해상도 변경으로 안보이는 옵션창 | 푸딩뱃살 | 2664 | 2014.08.27 00:33 |
38 | [리눅스] 심볼릭 링크 ln | 푸딩뱃살 | 2641 | 2014.07.16 10:32 |
37 | [리눅스] e-mail 서버 구축 - sendmail | 푸딩뱃살 | 1225 | 2014.06.29 22:54 |
36 | [리눅스] 그룹 관리 (addgroup, usermod, groups, groupmod, gpasswd, group | 푸딩뱃살 | 8735 | 2014.06.29 01:52 |
35 | [리눅스] yum으로 Desktp(GNOME, KDE) 설치 | 푸딩뱃살 | 5371 | 2014.06.25 23:40 |
34 | [리눅스] 부팅 시 console로 시작되도록 설정 | 푸딩뱃살 | 2884 | 2014.06.25 23:25 |