- Open your terminal and type in
code ~/.ssh/config, and hit enter - Add the following
Host <alias of the host> (This is what you will have to type in using ssh)
HostName <ip address> e.g. 192.0.2.3
User <username> e.g. root
IdentityFile <ssh file> e.g. ~/.ssh/id_ed25519.pub