Page 1 of 1

ssh network connection problem from terminal

Posted: Mon Dec 06, 2021 4:46 pm
by choco_sranang
Dear Ghostbsd forum,

I have a strange problem.

With filezilla or "places/connect to server" I can successfully conncet with ssh to my home server on port 5022. The problem arises when I try to conncet 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 }
What am I doing wrong?

Re: ssh network connection problem from terminal

Posted: Mon Dec 06, 2021 4:50 pm
by ericbsd
2 times the same post?