After creating a server, you always need to initialize the server by using common commands. however, these commands are basically no longer used after initialization. If you re-create the server, you have to go to Google... so it is recorded here. 1. after the server is established through ssh, the first thing is to install openssh-server. 2. add User [plain] useradd USER_NAME-G GROUP_NAME-d/home/USER_NAME passwd USER_NAME to set user password 3. set the shell program [plain] chsh-s/bin/bash USER_NAME/bin/bash to the bash path. for example, ksh is/bin/ksh 4. grant the folder owner permission [plain] chown/home/USER_NAME 5. change User Group [plain] usermod-G GROUP_NAME usermod can also be used to modify other things. 6. configure ssh access restrictions by adding AllowUsers USER1 USER2 to/etc/ssh/sshd_config. Note that users are separated by spaces. changing the folder owner group [plain] chgrp GROUP_NAME FOLDER_PATH sometimes requires-R if the folder has subfolders. 8. modify the folder group permission [plain] chmod g + r/w/x FOLDER_NAME 9. delete the user [plain] userdel USER_NAME and configure apache, exim, or other things ~