Removing the block of own IP by SSH

From BrainyCP
Jump to: navigation, search
IP blocking is used to protect against unauthorized access to the control panel. How to set it up is written in the instructions. "Protecting panel BrainyCP оfrom an unauthorized access".  
If for some reason you have blocked the entry for your IP (for example, mixing up the "Deny" and "Allow" fields), the best solution would be to go under a different IP. If this is not possible, you can remove the login ban using SSH. For this you need:
1. Putty utility.
2. IP, login and password sent by the hosting provider to your e-mail.

To disable self-IP blocking, follow these steps:

Connect via SSH using the IP address you use to log into BrainyCP.

1. Fill in the login as root (username) and root @ IP address password (password) fields.
2. Enter the command: yum -y install nano
3. Enter the command: nano /etc/brainy/src/compiled/nginxb/conf.d/properties.conf
4. Delete your IP and then press ctrl + x -> Y -> enter.
5. Enter the command: service nginxb restart

2019-08-30 14-26-43.png

Go to the control panel. If everything is done correctly, you will see an authorization form:

2020-12-24 15-25-10.png