SSH (Internet)[SOLVED]

If none of the more specific forums is the right place to ask

SSH (Internet)[SOLVED]

Postby xedoc » 2018-11-02 11:58

Hi,

I'm having some issues with SSH.

I am able to use it very well over the lan after i allowed Port 22 in the firewall and remote login in settings - sharing(Gnome), however i cant connect to it with my public address(https://www.whatismyip.com). I don't really know or understand what i am missing, the response i get from the terminal is "Connection refused". I didn't change any config files, everything is by default. My understanding in network is very poor but i assume i should get a different public ipv4 for each machine, however when i connect to the website i see that my Arch and my Debian have the same public ipv4 ?

Am i missing something ?

Thanks for your help.
Last edited by xedoc on 2018-11-02 15:07, edited 1 time in total.
xedoc
 
Posts: 14
Joined: 2014-02-14 09:48

Re: SSH (Internet)

Postby p.H » 2018-11-02 12:35

Your machines and LAN have private IP addresses (192.168, 172.16-31, 10 ranges) and the router does NAT. The public IP address belongs to the router. It appears that the router does not listen nor forward SSH connections.
p.H
 
Posts: 631
Joined: 2017-09-17 07:12

Re: SSH (Internet)

Postby xedoc » 2018-11-02 15:04

Hi,

Thanks for your reply. Indeed it didnt, not by default at least. I was able to create a new rule in NAT/PAT to forward the connection from a specific port.

Now i just need to do ssh publicaddress -p port and that's it.

Thank you for your help.
xedoc
 
Posts: 14
Joined: 2014-02-14 09:48


Return to General Questions

Who is online

Users browsing this forum: fred44nl, MagicPoulp and 8 guests

fashionable