SSH RSA Public Key Authentication
Introduction
The SSH protocol supports a method by which authorization is achieved using an authorized RSA public key, that the client sends, and the server can verify.
All the protocols using SSH authenticate using the same set of public keys.
How Does It work?
In the data directory for Supybot, the Gateway plugin will create (if not already exisiting) the directory Gateway/keys/ssh/authorized. Inside this directory will be placed files each containing a public key for an authorized client, and named as the user's username.
On connection attempts, the client's key will be checked against the key (if any) for that user in the authorized directory. If the keys match, the user is authorized, if not, the session moves on to password authentication.
How to generate keys?
To generate a pair of client keys using OpenSSH, execute:
ssh-keygen -t rsa