refactored sshd module