Windows 10 telnet problem

  • Thread starter Thread starter MarsForever
  • Start date Start date
M

MarsForever

I want to use teraterm to connect Linux which is in private network.

But I get a message "Connection timed out".


The following is Linux(Ubuntu16.04)'s command result. xxx.xxx.xxx.246 is Windows 10's IP.

root@xxxxxx:/usr/share/iptables# telnet xxx.xxx.0.246 22

Trying xxx.xxx.0.246...

telnet: Unable to connect to remote host: Connection timed out



The following shows that Linux's 22 port is opening.

root@xxxxxx:/usr/share/iptables# sudo netstat -tnlp | grep :22

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1581/sshd

tcp6 0 0 :::22 :::* LISTEN 1581/sshd


This is Windows10's Message xxx.xxx.0.222 was Linux's IP



telnet xxx.xxx.0.222 22

Connecting To xxx.xxx.0.222...Could not open connection to the host, on port 22: Connect failed

So I check port 22 .

1.Enter Win key + r

2.Enter "wf.msc"

3.Check Inbound Rules,Name column "OpenSSH SSH Server(sshd)" and it's enable




But when I executed the following command


C:\WINDOWS\system32>netstat -aon|findstr "22"
TCP xxx.xxx.0.246:1269 111.221.29.254:443 ESTABLISHED 14028
TCP [2405:6581:2340:500:55ab:adc1:5f0c:aae9]:1717 [2404:6800:4008:c06::7d]:5222 ESTABLISHED 16972
TCP [2405:6581:2340:500:55ab:adc1:5f0c:aae9]:1722 [2404:6800:4004:801::200a]:443 CLOSE_WAIT 16972
TCP [2405:6581:2340:500:55ab:adc1:5f0c:aae9]:1820 [2404:6800:4008:c04::bc]:5228 ESTABLISHED 14028
TCP [2405:6581:2340:500:55ab:adc1:5f0c:aae9]:14801 [2a00:11c0:2f:351:37:252:229:168]:5938 ESTABLISHED 4720
UDP 0.0.0.0:5353 *:* 2272
UDP 0.0.0.0:5355 *:* 2272
UDP [::]:5353 *:* 2272
UDP [::]:5355 *:* 2272
UDP [fe80::4da1:e2c2:90b:bb0c%22]:1900 *:* 5480
UDP [fe80::4da1:e2c2:90b:bb0c%22]:5353 *:* 4720
UDP [fe80::4da1:e2c2:90b:bb0c%22]:60952 *:* 5480


I find port 22 isn't opening.


Can somebody tell me what's the problem to my windows's port setting.

And what should I do ?

Continue reading...
 
Back
Top