I have a strange problem.
With filezilla or "places/connect to server" I can successfully connect with ssh to my home server on port 5022. The problem arises when I try to connect through cli in the terminal:
ssh myuser@mydomain:5022, gives me the following error:
ssh: Could not resolve hostname mydomain:5022: Non-recoverable failure in name resolution
my /etc/pf.conf looks like this:
Code: Select all
ext_if="em0"
set skip on lo0
scrub in all fragment reassemble max-mss 1440
antispoof quick for $ext_if
block all
pass out proto { tcp udp } to port { 22 5022 53 80 123 143 587 443 631 68}
pass in on $ext_if inet proto icmp to ($ext_if) icmp-type { unreach, redir, timex, echoreq }