/etc/hosts.allow 파일에 허용할 아이피를 추가
#
# 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
#
sshd: 1.1.1.1
sshd: 2.2.2.2
sshd 서비스 재시작
systemctl --restart sshd.service
'OS > Linux' 카테고리의 다른 글
[Linux] bash_profile 샘플 (0) | 2017.08.23 |
---|---|
[Linux]Centos 7 네트워크 설정 (0) | 2017.08.23 |
[Linux]bash, .bash_profile 사용 예제 (0) | 2017.06.23 |
[Linux]firewalld 추가 (0) | 2017.05.08 |
[리눅스]firewalld (0) | 2017.03.30 |