Enabling the Remote Login Permission for the DPU OS User
- Log in to the DPU OS through the serial port. For details, see Logging In to the DPU Through the Serial Port.
- Open the /etc/ssh/sshd_config file.
vi /etc/ssh/sshd_config
- Press i to enter the insert mode and set PermitRootLogin to yes.
PermitRootLogin yes
Enabling remote SSH login permissions for the root user poses security risks. Adequate administrative and access controls must be implemented prior to the operation, and the permissions should be disabled promptly upon operation completion.
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Restart the sshd service.
systemctl restart sshd
Parent topic: FAQs