Home WebServer PanelDirectAdmin How to fix the Security Error No valid session key error on CSF DirectAdmin

How to fix the Security Error No valid session key error on CSF DirectAdmin

by Thạch Phạm
Published: Last Updated on
A+A-
Reset

In this article, AZDIGI will show you how to handle the warning: Security Error No valid session key on CSF DirectAdmin simply & quickly and why this error occurs.

I. The cause of the warning Security Error No valid session key on CSF DirectAdmin

The causes of this warning are many, but you can briefly understand it like this: Initially, you log in to DirectAdmin on network A, then you do not log out but switch to network B, although you are still on the DirectAdmin admin page, when you enter CSF, you will receive a message similar to the following image. Or, your network is a dynamic IP and your network IP has just been changed by the carrier, resulting in the same warning.

Security Error No valid session key trên CSF DirectAdmin - how to fix

While your login session is still present, CSF checks that your IP Wan has changed and will no longer give you access to the CSF console. This prevents the hacker from taking over the CSF administration when the connection comes from a different IP address.

To solve this error, we continue to read this article.

II. How to fix the Security Error No valid session key error on CSF DirectAdmin

To handle the Security Error No valid session key error on CSF DirectAdmin, we follow these two steps.

Step 1: SSH into your DirectAdmin system

To fix the Security Error: No valid session key error on CSF DirectAdmin, we first need to SSH or access your VPS/server with root privileges.

After successfully SSH, we continue with step two to execute these error-handling commands.

Step 2: Execute the command to create a file to skip the IP check

At this step, you only need to run a command as below. However, this means disabling a security layer of CSF and reducing the safety of your system, which you consider before doing it.

AZDIGI Tutorial
echo > /var/lib/csf/csf.da.skip
    

After that, the problem will be solved and you can reload your CSF admin page.

Security Error No valid session key trên CSF DirectAdmin - how to fix

So we have finished solving the warning Security Error No valid session key on CSF DirectAdmin.

If you want to re-enable this security layer, you can delete this file with the following command:

AZDIGI Tutorial
rm -f /var/lib/csf/csf.da.skip
    

After running the above command to delete the csf.da.skip file, the security layer will be enabled again.

III. Summary

Through this article, you have learned an additional layer of implicit security of CSF, as well as how to solve the warning Security Error No valid session key on CSF DirectAdmin. However, after disabling it, remember to re-enable on to have an extra layer of security for your system.

Hope this article will be of help to you.

Wishing you success!

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign