Community discussions

MikroTik App
 
aismelva
just joined
Topic Author
Posts: 10
Joined: Sat Nov 24, 2018 7:42 am

Ssh problems trying to login !!

Fri Apr 24, 2020 11:29 am

Hi everyone,

Ubiquiti:
WLAN0 --> 10.77.14.155
LAN0 --> 192.168.1.10
MK
LAN --> 192.168.1.1

I forward in my Ubiquit from the WLAN0 to the SSH port in my MK and works but not complete, because when i trying to login the credentials fail, and i check the password 1000 and works, even i successfully login in my computer with the address 192.168.1.5 and works too

The sames happen with the Webproxy service... just work in the segment 192.168.1.X

What's happen here ??

Best regards
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2994
Joined: Mon Apr 08, 2019 1:16 am

Re: Ssh problems trying to login !!

Fri Apr 24, 2020 11:54 am

LAN0 and LAN are in the same subnet.
How is the MKT set up? Just bridged (all ports are LAN) , or as gateway (WAN and LAN ports)?
As gateway subnets must be different (are routed) and access via the WAN port is disabled by default.
 
aismelva
just joined
Topic Author
Posts: 10
Joined: Sat Nov 24, 2018 7:42 am

Re: Ssh problems trying to login !!

Fri Apr 24, 2020 10:23 pm

Hi,

My MK is a RouterBOARD SXTsq G-5acD

The Ubiquiti and MK share the same UTP cable.

Switch --> (Ubiquiti)LAN1
(Ubiquiti)LAN0 --> MK (BRIDGE)

Ubiquiti:
WLAN0 --> 10.77.14.155 (Game NetWork)
LAN0 --> 192.168.1.10
MK
LAN --> 192.168.1.1

MK is connected to my ISP and Ubiquiti to a game network.

Ubiquiti is on router mode. --> Nat mode
MK is a router too --> Nat mode

MK is a GateWay you're right..

Can you explain me this pls..

"As gateway subnets must be different (are routed) and access via the WAN port is disabled by default."
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2994
Joined: Mon Apr 08, 2019 1:16 am

Re: Ssh problems trying to login !!

Fri Apr 24, 2020 11:33 pm

Hi,

My MK is a RouterBOARD SXTsq G-5acD

The Ubiquiti and MK share the same UTP cable.

Switch --> (Ubiquiti)LAN1
(Ubiquiti)LAN0 --> MK (BRIDGE)

Ubiquiti:
- WLAN0 --> 10.77.14.155 (Game NetWork)
- LAN0 --> 192.168.1.10
MK - LAN --> 192.168.1.1

MK is connected to my ISP and Ubiquiti to a game network.
Ubiquiti is on router mode. --> Nat mode
MK is a router too --> Nat mode
MK is a GateWay you're right..
Can you explain me this pls..
"As gateway subnets must be different (are routed) and access via the WAN port is disabled by default."
Sorry don't understand your way of reporting the config.

Now is see:
Ubiquiti with 2 switched interfaces, and one WLAN with NAT and routed
- WLAN0 -->10.77.14.155 (Game NetWork) routed +NAT
- LAN0 --> 192.168.1.10 to Mikrotik
- LAN1 --> to unknown switch
MK with routed NAT connection
- LAN --> 192.168.1.1 to Ubiquiti (LAN interface list)
-WLAN --> routed NAT to ISP (WAN interface list)

Access is "port forward in Ubiquity" from WLAN0 to 192.168.1.1 .
SSH is not working (no login) via this forwarded connection.

Found this recommendation via Google :"You need to run ssh (the client, and possibly the server) with more verbosity to understand why authentication is failing. For the client, run

ssh -vvv username@host "
 
Elliot
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Tue May 30, 2017 3:04 pm

Re: Ssh problems trying to login !!

Sat Apr 25, 2020 4:58 am

I see that you are not very familiar with Mikrotik devices.

If I were you I would try to debug. Use something tail or something like it if you're running Windows. Enable logging ssh debug on your MK device. There might be a problem.
I have a similar problem and /ip ssh regenerate-host-key resolve the problem.
If this doesn't help you, post your config from MK device here.
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2994
Joined: Mon Apr 08, 2019 1:16 am

Re: Ssh problems trying to login !!

Sat Apr 25, 2020 11:27 am

Maybe also check your Routeros version , and the known problems

What's new in 6.47beta60 (2020-Apr-24 07:38):

*) ssh - fixed SHA256 user authentication algorithm checking (introduced in v6.46.4);
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3300
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Ssh problems trying to login !!

Sat Apr 25, 2020 4:56 pm

If you use MT as a pure Switch, this will work.
If you do Routing NAT etc, you can not have same IP net on inside/outside of MT Router.

Can you post the config of out MT Router?
/export hide-sensitive

Who is online

Users browsing this forum: BoraHorza, girishg, Google [Bot], sas2k and 167 guests