4/29/2023 0 Comments Jprofiler debian servreTo perform these operations you need to open the configuration file in any editor: sudo nano /etc/ssh/sshd_confiq When configuring the server, it is suggested to change the default port and disable the root SSH login. SSH is also known as secure shell is a protocol that is used to connect with remote servers. ![]() Now close the shell instance and open it again a new hostname will appear. The hostname is the identity of your system over a network so it is a good practice to properly name your hostname and to change the hostname use the below-mentioned command: sudo hostnamectl set-hostname debian11įor the sake of demonstration, I have changed the hostname to “debian11”. To check the current hostname, use: sudo hostnamectl It can be seen that the user has switched. Switch account by executing the command: sudo su tecadmin Now, provide sudo privileges to the new user: sudo usermod -aG sudo tecadmin In the command “tecadmin” is the new user. For that run the below-mentioned command to add user: sudo adduser tecadmin It is recommended to create a new sudo user for your server management instead of the root account.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |