mprogrammerfor this tutorial. You may wish to select some other name. The command to create user is
sudo adduser mprogrammerMake sure you choose a password that is secure. We will set up the server so it can be accessed using the password only.
sudo usermod -a -G sudo mprogrammer
sudo nano /etc/ssh/sshd_config
PermitRootLogin. It is very likely that it starts with the symbol
#. This means that the line is commented-out and inactive. You need to erase that leading
#and modify it a bit so the line has the following form:
PasswordAuthentication no. Change this line to
Ctrl+x. Then type
yand then click
sudo rebootYou will need to wait for about two minutes before the server can be accessed again.
11.22.333.444. Type the following command in your terminal program.
ssh email@example.comAnswer yes to a few questions that the terminal may ask you.
ssh-keygen -R 11.22.333.444
sudo apt updateType your password and wait for the command to finish.
sudo apt upgradeThis may take two minutes or longer.