I am using the following to successfully connect to a server:
ssh -i /path/to/cert.pem email@example.com
I would like to create an alias for my host. I have the following in my .ssh/config
Host aliasname Hostname 22.214.171.124 User username IdentityFile /path/to/cert.pem
Then when I enter
ssh aliasname it says:
ssh: Could not resolve hostname aliasname: Name or service not known. Have I missed something?