Refactoring ssh config file reader