fix for cannot restart ssh issue