Fix public key authentication for SSH tunnels.