Connecting to server using ssh alias results in "could not resolve hostname"
Posted
by
xylar
on Server Fault
See other posts from Server Fault
or by xylar
Published on 2012-11-27T16:08:18Z
Indexed on
2012/11/27
17:06 UTC
Read the original article
Hit count: 228
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?
© Server Fault or respective owner