Fixed erroneous call to logger
Fixed writing ssh keys, need to use the filehandle
Changed weird operator