save machine key association, remove port from settings