- 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.Now try to login with root user, you will get “Access Denied” error.
- # /etc/init.d/sshd restart
- So, from now onwards login as normal user and then use ‘su’ command to switch to root user.
- Home
-
Store
- Browse All
- Server Management-New
- Virtualization Management-New
- Outsource Technical Support
- Security Services
- Emergency Services
- Cloud Management
- Monitoring
- Linux VPS USA
- Software/Database
- Dedicated Server - Custom
- Dedicated Server - Preconfigured
- Leased IP Range
- Linux VPS India
- GetOfficeOnline
- Software Licensing
- Announcements
- Knowledgebase
- Network Status
- Affiliates
- Contact Us
-
More