- 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
- WordPress Hosting
- Ads Management
- VPS
- Development & Design
- Management & Updates
- IT Services
- Security Camera Installation
- Backup
- Generative AI Training
- Cybersecurity & AI Safety Training
- Web Services
- Social Media Management
- NordVPN
- Business Growth System
- VPN
- Register a New Domain
- Transfer Domains to Us
- Announcements
- Knowledgebase
- Network Status
- Contact Us
-
More