SSHd file refactored