![]() Step 2: Disallow Root Login and Password Authentication From now on, all commands will be preceded with sudo. ![]() If the login is successful, you may close the other terminal. ![]() ssh-copy-id the key has been installed, log into the server using the new user account. You will be prompted to authenticate before the SSH key is installed. gpasswd -a joe wheelįinally, open another terminal on your local machine and use the following command to add your SSH key to the new user's home directory on the remote server. passwd joeĪdd the new user to the wheel group so that it can assume root privileges using sudo. You'll be prompted to input and confirm a password. To create the user account, type: adduser joe For this tutorial, assume that we're creating a user named joe. Instead, it is recommended to create a standard user account that will be using sudo to gain administrative privileges. ssh -l root server-ip-addressįor security reasons, it is not advisable to be performing daily computing tasks using the root account. PrerequisitesĪ newly activated CentOS 7 server, preferably setup with SSH keys. In this article, the most important customizations that you'll have to make are given in an easy-to-understand manner. ![]() A newly activated CentOS 7 server has to be customized before it can be put into use as a production system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |