ssh network connection problem from terminal

Help with setting up network cards, including WiFi cards.
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 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 }
What am I doing wrong?
Last edited by choco_sranang on Mon Dec 06, 2021 6:49 pm, edited 1 time in total.
User avatar
ericbsd
Developer
Posts: 1892
Joined: Mon Nov 19, 2012 7:54 pm

Re: ssh network connection problem from terminal

Post by ericbsd »

Can you ping that domain?
choco_sranang
Posts: 3
Joined: Mon Dec 06, 2021 4:36 pm

Re: ssh network connection problem from terminal

Post by choco_sranang »

PING mydomain (190.98.94.212): 56 data bytes
ping: sendto: Permission denied
ping: sendto: Permission denied
ping: sendto: Permission denied
ping: sendto: Permission denied
Post Reply