Factored out SSH session class