Win10's linux subsystem cannot be connected with xshell

ubuntu 16.04
openssh-server is also installed, but the port is changed to 23, and then the connection cannot be connected. The following error is reported. Have you encountered this situation

?
Connecting to 192.168.10.12:23...
Connection established.
To escape to local shell, press "Ctrl+Alt+]".
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(192.168.10.12) at 14:53:13.

Type `help" to learn how to use Xshell prompt.
Mar.17,2021

under what circumstances can I connect? Can I connect before the
port is changed to 23?
has the server-side ssh port been changed to 23?
is the server-side ssh service started? ( service ssh status )
is port 23 on the server? ( ss-tlnp )
does the server have a firewall to block access to port 23? ( iptables-nL )

< hr >

through To escape to local shell, press' Ctrl+Alt+]'. know that the service corresponding to port 23 of your server is telnet, and not ssh.
solution:

  1. you can change the port of Xshell link 192.168.10.12 back to 22
  2. you can shut down the telnet service on the server side ( / etc/init.d/openbsd-inetd stop ) now rarely use this service to transfer data, because it is plaintext transmission, it is not secure), change the ssh service port to 23 (modify the configuration file in / etc/ssh/sshd_config ), and then restart the ssh service ( service ssh restart )

what do you want to do with subsystem on windows 10? Apart from curiosity, I can't think of any other reason.

if you want to practice ubuntu, you might as well use a virtual machine (VirtualBox, etc.).

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34f06-2bf37.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34f06-2bf37.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?