Connecting to server using ssh alias results in "could not resolve hostname"
- by xylar
I am using the following to successfully connect to a server:
ssh -i /path/to/cert.pem [email protected]
I would like to create an alias for my host. I have the following in my .ssh/config
Host aliasname
Hostname 12.34.56.78
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?