- To disable root login, open the main ssh configuration file /etc/ssh/sshd_config with your choice of editor.
- # vi /etc/ssh/sshd_config
- Search for the following line in the file.
- #PermitRootLogin no
- Remove the ‘#‘ from the beginning of the line. Make the line look like similar to this.
- PermitRootLogin no
- Next, we need to restart the SSH daemon service.
- # /etc/init.d/sshd restart
- Now try to login with root user, you will get “Access Denied” error.
- So, from now onwards login as normal user and then use ‘su’ command to switch to root user.
- Portal Home
-
Store
- Browse All
- Website Design & Development
- Website Care & Maintenance
- IT Services
- Security Camera Installation
- Generative AI Training
- Cybersecurity & AI Safety Training
- Social Media Management
- AI Automation & Chatbot Services
- Managed Hosting Service
- WCAG 2.2 Accessibility for WordPress
- Register a New Domain
- Transfer Domains to Us
- Announcements
- Knowledgebase
- Network Status
- Contact Us
-
More