Minimal password-only SSH server for demos and local testing.
cd /home/nohj/ssh-server- (optional)
python3 -m venv .venv && source .venv/bin/activate pip install -r requirements.txtpython3 server.py --host 0.0.0.0 --port 2222 --username demo --password demo
Connect from another terminal:
ssh demo@localhost -p 2222 -o StrictHostKeyChecking=no
server.py— Paramiko-based SSH server with a simple shell/exec handler.host_key— server host key (generated automatically on first run).requirements.txt— Python dependencies.
- Auth is a single username/password pair; no public keys.
- Commands run on the host where you start the server; do not expose to the public internet.
- Stop with
Ctrl+Cin the server terminal.