A big river

Centos prohibits IP connections to SSH services

1. Modify /etc/hosts.deny File, the command is as follows:

 sudo vi /etc/hosts.deny

2. Write content rules:

 #Deny specifying IP sshd:127.0.0.1 #Reject IP segment (wildcard symbol '.') sshd:127.0.0.

3. Don't forget to restart after the above sshd Services.

 sudo systemctl restart sshd

Comment

◎ Express your opinions, exchange your opinions, and keep friendly remarks.

search
Recent messages
Recently published
Site Label