Configure a remote with .pem file access

Hello community,

I would like to know how I can configure a remote machine that I access through a .pem file.

In other words, to connect to the machine via terminal I simply execute: ssh -i file.pem user@IP

Thanks in advance