You can select the BMS login mode or account type. If you have requirements for special configuration, perform the following operations:
This operation may cause risks. Exercise caution before performing this operation.
Take CentOS 6.7 as an example. Modify the following parameters:
users:
- name: root
lock_passwd: false
disable_root: 0
ssh_pwauth: 1
In the preceding information:
vi /etc/ssh/sshd_config
Change the value of PasswordAuthentication in the sshd_config file to yes.
vim /etc/shadow
Add !! to the password hash value of the root account. The modified configuration file is as follows:
# cat /etc/shadow | grep root root:!!$6$SphQRPXu$Nvg6izXbhDPrcY3j1vRiHaQFVRpNiV3HD/bjDgnZrACOWPXwJahx78iaut1IigIUrwavVGSYQ1JOIw.rDlVh7.:17376:0:99999:7::
For Ubuntu, delete the user created during the OS installation. For example, run the userdel -rf ubuntu command to delete user ubuntu created during OS installation.