I configured my ~/.ssh/config file with the following
Host alias1 HostName <host.dns.address> User <username> Port 22
But, when doing
ssh alias1 I get a timeout error:
ssh alias1 ssh: connect to host host.dns.address port 22: Operation timed out
However, if I do it directly from the command line
ssh -p 22 host.dns.address
I'm able to connect correctly. I checked for typos but everything seems to be correct. Any ideas on what could be wrong on my alias config?