How to SSH into KOreader (Kobo eReader) from macOS

Guide to use KOReader on a Kobo eReader with SSH mode to wirelessly transfer ebooks. Includes instructions and config file template.