telnet error Protocol mismatch. Connection closed by foreign host.

From my mikrotik box, I am trying to ssh to linu xbase host which have non standard port for ssh like 1234, but it gives following error after connecting

/sys telnet 192.168.1.1 1234

Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.4
[and if issue any command or line it gives following error]
Protocol mismatch.
Connection closed by foreign host.

Welcome back!

If you want ssh, wouldn’t it be better to use ssh instead of telnet? :wink:

/system ssh address=192.168.1.1 port=1234 user=yourusername

:laughing: it worked! strange I searched google and mikrotik forum but couldn’t find or maybe couldn’t see it

Thanks @Sob