Okay, I’ll put my aliases in there, I’ve not seen that option before.
So, name the file config and add my aliases in there. I’ll give it a go.
Okay, so this is baffling.
I have two computers. On one computer, I put my aliases in the .zshrc file and everything works fine.
On the other computer, I used your way with the config file in .ssh and it still will not resolve the IP. This is the same computer that would not resolve the IP in the .zshrc file either. It won’t resolve either way.
as an aside, when I have the aliases in the .zshrc file I can type the ‘alias’ command and they appear in the alias list. if I put them in the .ssh/config file, the aliases do not appear in the alias list.
~ cat .ssh/config ✔
Host 192.168.1.1x
HostName mediaserver
User me
Port 22
Host 192.168.1.1x
HostName amd1
User me
Port 22
~ alias ✔
cp='cp -i'
df='df -h'
free='free -m'
gitu='git add . && git commit && git push'
ls='ls $LS_OPTIONS'
run-help=man
which-command=whence
~ ssh amd1 ✔
ssh: Could not resolve hostname amdds1: Name or service not known
~ ssh mediaserver
Last login: Mon Jan 16 15:09:42 2023 from 192.168.1.1x
me@mediaserver:~$
Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text