CLI sessions are unuseable

After last reboot i can not use any of the CLI sessions - neither telnet nor ssh.

After successful authorization, terminal just hangs, waiting forever.

However in case of ssh, after some time(around 2 minutes) it shows usual motd.

Profiling says that my device is 95% idle

Device is CCR1036-8G-2S+
Using RouterOS 6.35.4, firmware 3.27

This usually indicates some sort of Layer 2/3 problem like packet loss, ip address conflict, etc.

How are you accesing the router? What devices or connections are between you and the router being managed? Is there anything relevant in the logs?

No devices between me and router, i am in the same segment. Nothing unusual in logs either, last message - successful authentication on ssh.

By the way - web interface runs perfectly, so, i doubt that this is network problem.

Trying to disable and enable ssh in IP->Services does not help

A problem with DNS maybe?

Maybe, I doubt it. I am familiar with SSH on Linux systems(yeah, yeah, i undestand that this maybe not related) and i know that if it is unable to resolve PTR record for connecting IP - there would be delays in login. But that’s not the case, DNS servers are accessible from device(if i allowing remote request in internal DNS server while my DNS servers are set as recursors - device itself starts to work as DNS server without any problems)

And the main problem is - in Linux systems it would be delay in login. Maybe, like, minute or two. I wait for 15 minutes and all that i see - motd. No CLI prompt.

Do a packet capture and use Wireshark…

I have to reboot router because web interface died too. After reboot - all things seems normal.