howto auth
Work In Progress

Client

Install using apt

$ sudo apt update
$ sudo apt install openssh-client

Install using pacman

$ sudo pacman -Sy openssh

Generate and use ssh-keypair

Generate keypair using following command. note: you can rename the key with the -f flag

$ ssh-keygen -t ed25519

This generates a keypair (public and private key) under ~/.ssh.

You can upload the key with following command:

$ ssh-copy-id -i ~/.ssh/id_ed25519 <user>@<host>

or copy the contents of the public key (.pub) to the hosts authorized_keys file (~/.ssh/authorized_keys).

Add key to ssh-agent

Following command adds your key to your agent:

ssh-add ~/.ssh/id_ed25519