Run ssh_precmd before restart so the host keys are generated