This repo contains two demo scrips to create an SSH server with Paramiko:
base_server.py, which showcases the different options available to configure a server.simple_server.py, which is a minimal server with password authentication to create a new session. It does not include the logic to spawn a shell behind the server.
The gen-keys.sh script was used to create the keys for both the server and client. The keys are included in the repo because the fingerprint of the client keys are included in base_server.py for pubkey-based authentication.
The only dependency is Paramiko version 4.0.0.