OS/Linux

[Linux]ssh 아이피 허용

1125521101 2017. 8. 21. 10:42

/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