Your Debian Server

We are using debian linux.

Software Installation

You will need to install these open source packages using apt

nginx
A web server
certbot and python3-certbot-nginx
This issues https certificates
git
A source control tool

Create a user andrew

sudo adduser --disabled-password --gecos "" andrew
sudo usermod -aG sudo andrew
echo "andrew ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/andrew
sudo mkdir -p /home/andrew/.ssh
sudo cp /root/.ssh/authorized_keys /home/andrew/.ssh/authorized_keys
sudo chown -R andrew:andrew /home/andrew/.ssh
sudo chmod 700 /home/andrew/.ssh
sudo chmod 600 /home/andrew/.ssh/authorized_keys

Server identity warning

If you connect with ssh <username>.pullrope.net and see this:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:<fingerprint>.
Please contact your system administrator.
Add correct host key in /home/you/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /home/you/.ssh/known_hosts:12
  remove with:
  ssh-keygen -f '/home/you/.ssh/known_hosts' -R '<username>.pullrope.net'
Host key for <username>.pullrope.net has changed and you have requested strict checking.
Host key verification failed.

This is expected and it is not an attack. Your server was rebuilt after the last session, so it has a new identity key. Your computer still remembers the old key and refuses to connect until you remove it. Your files and account are not affected.

To fix it, run the ssh-keygen -R command from the message, using your username:

ssh-keygen -R <username>.pullrope.net

Then connect again with ssh <username>.pullrope.net. You will be asked to confirm the new fingerprint. Type yes.

If your teacher has not mentioned a server rebuild, check with them before you type yes.