Note, the links I provide should open in a new window/tab if clicked on it.
The library doesn't have key gen capability, but you can generate keys using pyttygen from
Here is some reading for puttygen:
http://winscp.net/eng/docs/ui_puttygen alternatively (same, but without screenshots)
You pass your private key to SSH.NET, but before that you must put your public key on in the file ~/.ssh/authorized_keys to allow the SSH server to recognize your key. You may need to change your SSH server configuration as well, it is usually located in
/etc/ssh/sshd_config, but make a backup of it before editing it.
You must never share your private key, doing so will compromise systems which allow you to login with your key pair.