openssh configuration via NETCONF using sysrepo & Netopeer 2
As an example of how sysrepo & Netopeer 2 can be used to make an existing Linux application remotely manageable via NETCONF in a few hours, we integrated it into OpenSSH deamon.
Full code of this integration is avaliable here on GitHub.
The demo of this integration can be played below:
Description of the demo:
- 00:00 - 00:12: Two containers are started, one for the ssh deamon server, and other for client.
- 00:12 - 00:27: datastore is updated with needed model and data, sysrepo daemon and netopeer2 server are started on server before the sshd itself.
00:27 - 00:49: Two user try to connect to the server. As it is observable, first is already amon AllowedUsers in sshd configuration so it accomplishes. Other is not so it fails.
- 00:49 - 00:58: Using testconnf, an edit-config request is sent to the server to add later user.
- 00:58 - 01:12: Other user now also accomplishes connection.