a basic framework for SSH