Struggling with SSH to AWS via Teams

I currently SSH to AWS via

ssh - i "CERT.pem" [email protected]

I want to now use ssh [email protected] via cloudflare DNS name. To do this i have been told to use CloudFlare Teams , so this I did.

Followed the guide, but now I still cant access the host as it wont accept the connection as the CERT.PEM is still the only authorised key in the hosts authorised list file.

So when I do ssh to the host, It does the Zero Trust check gets my 2FA code etc and then passes the connection to the host, but this still needs the CERT.PEM file and it wont allow me connection. Can anyone advise?