some notes

SSH Basics

ssh-keygen -t rsa -b 4096 - to generate a new key pair.

The authorized_keys file in the user's .ssh directory holds all public keys (as one-liners) that are allowed to be used to authenticate as that user.

To configure key-based authentication, connect to the server via SSH and add your public key (the contents of ~/.ssh/id_rsa.pub) to the end of the /home/student/.ssh/authorized_keys file.

Alternatively, the ssh-copy-id automates the process above and can be used to add your public key:

# Usage: ssh-copy-id <remote user>@<hostname or IP address>
ssh-copy-id -i ~/.ssh/id_rsa student@server