Fix Public Key Authentication (spend a lot of time to figure out, that the order is important)