Switch to the root user:
Edit the configuration file:
Modify the parameter:
Modify the parameter:
Set the root password:
Restart the ssh service:
Note: X=delete the # sign, W=move the cursor to the next word, DW=delete the word after the cursor, A=enter edit mode, esc=exit edit mode, slash "/" + string=find
After editing, enter :wq
to save and exit, then restart the ssh service