OpenSSH/Configure OpenSSH to allow Public-key authentication

Create file  and add public key of client to provide access.

Limit connecting host and command: It is also possible also to lock access to only be able to run a specific command, or use it only from a specific host. See.

Example syntax::