ssh network connection problem from terminal

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
Post Reply
choco_sranang
Posts: 3
Joined: Mon Dec 06, 2021 4:36 pm

ssh network connection problem from terminal

Post 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?
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: ssh network connection problem from terminal

Post by ericbsd »

2 times the same post?
Post Reply