Fixes local mode ssh issue