I can't connect via ssh to routeros
Posted: Mon Sep 11, 2023 6:14 am
by Samiojtm1
My ip address in routeros is local and it is different from public ip. How do I make a nat so that I can have ssh connection?
Public ip : 188.64.14.37
Local ip : 172.17.0.2
Port : 22
Re: I can't connect via ssh to routeros
Posted: Mon Sep 11, 2023 6:23 pm
by IlKa
Your public IP is Ubuntu Linux and your network structure is unclear. Where does sit MT? Could you draw a map?
If it sits behind Ubuntu, you would need to do NAT there
Re: I can't connect via ssh to routeros
Posted: Mon Sep 11, 2023 6:29 pm
by Larsa
@Samiojtm1, never ever open services like ssh for public access from internet. Instead use VPN to access your local network.
Here are som usefull user guides courtesy of @Anav:
-
Beginner Basics
-
The DEFACTO DEFAULT FIREWALL Setup
-
New User Pathway To Config Success
-
Wireguard Success For The Beginner [VPN]
Re: I can't connect via ssh to routeros
Posted: Mon Sep 11, 2023 7:31 pm
by anav
To clarify, what LARSA is saying, I THINK, is dont setup an SSH server on your LAN.
If you need to access the Router for config purposes or access LAN IPs, then wireguard VPN is an excellent solution.
You can also SSH into the router itself for access but I would use this a backup only.
Also never use default port .................2232 or something else etc........