kingToolbox / WindTerm

A professional cross-platform SSH/Sftp/Shell/Telnet/Serial terminal.
https://kingtoolbox.github.io
22.82k stars 1.76k forks source link

WindTerm can't connect via SSH, but MobaXterm can #612

Open MilkTeaNo7 opened 2 years ago

MilkTeaNo7 commented 2 years ago

The same server, both intranet and extranet should be accessible via SSH

WindTerm intranet can not access a specific server, whether or not with a domain name, or IP address, prompting Timeout connecting to 192.168.80.253, when I connect again, he will appear white screen loss of response, for this problem I am verifying whether to open SFTP results are the same

The same moment I use MobaXterm to connect to the same server, whether with IP address or domain name he can access very smoothly

I don't know what the problem is, I tried to delete the connection and re-establish it, but the problem is still the same

Translated with www.DeepL.com/Translator (free version)

kingToolbox commented 2 years ago

Thank you, I will investigate this issue. But I am not sure if I can build a similar scenario for testing, the progress may be a bit slower.

If possible, you can help me speed up the analysis of the problem by providing recorded logs, and before opening the session, please set SSH - Terminal - Logging - Log types to Log all session output, so that the recorded log will contain the protocol part. After closing the session, please zip and upload the .wind/profiles/default.v10/terminal/logs/your session name/xxx.log here. The log is a text file and does not contain any private information, you can check it with any text editor before you upload it. Thank you.

vzex commented 2 years ago

home_router_2022-03-23_11-36-15.log Hi, I've got a same problem here, to connect the ax88u router, using the version [v2.4.0 Prerelease 1]. During the v2.3, I can connect with the setting [no sftp], but the new version just fail

db-one commented 2 years ago

OpenWRT_2022-03-23_14-30-55.log

OpenWRT logs are exactly the same whether SFTP authentication is enabled or not openssh-sftp-server vsftpd has been compiled into the routing firmware

image

Only occasionally can I connect successfully

db-one commented 2 years ago

[2022-03-23 14:30:55] ssh_connect: libssh 0.9.6 (c) 2003-2021 Aris Adamantiadis, Andreas Schneider and libssh contributors. Distributed under the LGPL, please refer to COPYING file for information about your rights, using threading threads_winlock [2022-03-23 14:30:55] getai: host 127.0.0.1 matches an IP address [2022-03-23 14:30:55] ssh_socket_connect: Nonblocking connection socket: 2808 [2022-03-23 14:30:55] ssh_connect: Socket connecting, now waiting for the callbacks to work [2022-03-23 14:30:55] ssh_connect: Actual timeout : 10000 [2022-03-23 14:30:55] ssh_socket_pollcallback: Poll callback on socket 2808 (POLLOUT ), out buffer 0 [2022-03-23 14:30:55] ssh_socket_pollcallback: Received POLLOUT in connecting state [2022-03-23 14:30:55] socket_callback_connected: Socket connection callback: 1 (0) [2022-03-23 14:30:55] ssh_socket_unbuffered_write: Enabling POLLOUT for socket [2022-03-23 14:30:55] ssh_socket_pollcallback: Poll callback on socket 2808 (POLLOUT ), out buffer 0 [2022-03-23 14:31:05] ssh_connect: Timeout connecting to 10.0.0.253 [2022-03-23 14:31:05] ssh_connect: current state : 9 [2022-03-23 14:31:05] ssh_socket_unbuffered_write: Enabling POLLOUT for socket [2022-03-23 14:31:05] packet_send2: packet: wrote [type=1, len=28, padding_size=7, comp=20, payload=20]

MilkTeaNo7 commented 2 years ago

谢谢,我会调查这个问题,但我可能会进行一些类似的问题测试。

如果可以的话,你可以通过提供记录来帮助我魔梯的问题分析,并且在打开会话之前,请设置SSH - Terminal - Logging - Log typesLog all session output,这样记录的日志可以包含协议部分。关闭会话后,请压缩并上传.wind/profiles/default.v10/terminal/logs/your session name/xxx.log这里。一个文本文件,不包含任何私人信息,您可以在上传之前使用任何文本编辑器进行检查。谢谢你。

I did that but he didn't have any log files produced, which may be a new problem, but now I find that I can't access it using other SSH either, so maybe I should look into other reasons image

izerosoul commented 2 years ago

Thank you, I will investigate this issue. But I am not sure if I can build a similar scenario for testing, the progress may be a bit slower.

If possible, you can help me speed up the analysis of the problem by providing recorded logs, and before opening the session, please set SSH - Terminal - Logging - Log types to Log all session output, so that the recorded log will contain the protocol part. After closing the session, please zip and upload the .wind/profiles/default.v10/terminal/logs/your session name/xxx.log here. The log is a text file and does not contain any private information, you can check it with any text editor before you upload it. Thank you.

I have exactly the same issue, you can easily build a similar scenario by install a x86 OpenWRT image in vmware. Sometimes you may login success first time, but always failed after 2nd time and later.

kingToolbox commented 2 years ago

Thank you all. I am working on the Free Type Mode feature and will fix this and release a new prerelease as soon as the development is finished.

Can anyone help to test if the WindTerm_2.3.0 or WindTerm_2.3.1 version can connect successfully?

db-one commented 2 years ago

Yes, WindTerm_2.3.1 has the same problem, only once or twice it can connect, most of the time it cannot connect

izerosoul commented 2 years ago

Thank you all. I am working on the Free Type Mode feature and will fix this and release a new prerelease as soon as the development is finished.

Can anyone help to test if the WindTerm_2.3.0 or WindTerm_2.3.1 version can connect successfully?

According to my test, both WindTerm_2.3.0 and WindTerm_2.3.1 have this same problem.

whyitdo commented 1 year ago

I tried to close "SSH - SSH - authentication - attempt keyboard-interactive authentication" and I was able to connect successfully

DogeFlow commented 1 year ago

I tried to close "SSH - SSH - authentication - attempt keyboard-interactive authentication" and I was able to connect successfully

nice!!!! is this a bug? @kingToolbox

c-sanchez commented 1 year ago

I have the same problem, I am using a DigitalOcean account and connect with SSH, I can with Putty, Kitty, MobaXterm nd WinSCP, but WindTerm gives some error.

https://i.ibb.co/ry8MFGB/01.png https://i.ibb.co/d2F5fp9/02.png https://i.ibb.co/7J33128/03.png https://i.ibb.co/2kxd7Zj/04.png

A friend was able to connect to his DigitalOcean account but using just a password instead of the key file to identify.

159.223.214.190_2022-12-06_18-17-18.log

Blueness-Song commented 1 year ago

还真是

I tried to close "SSH - SSH - authentication - attempt keyboard-interactive authentication" and I was able to connect successfully

thanks!!

justdojusth commented 1 year ago

我在2.5版本中遇到了同样的问题。并且同样是关闭SSH - SSH - authentication - attempt keyboard-interactive authentication后即可正常登陆。

diklios5768 commented 11 months ago

我在2.5版本中遇到了同样的问题。并且同样是关闭SSH - SSH - authentication - attempt keyboard-interactive authentication后即可正常登陆。

是的,2.5.0版本中仍然存在这样的问题,并且使用相同的方法解决了

majidhali commented 10 months ago

Screenshot from 2023-12-02 23-04-49 I have the same issue, I have a server hosted by ovh, I can ssh via mobaxterm,putty and normal terminal but I can't with Windterm! I have a public key with no passphrase and it always ask me for a passphrase and I am unable to login via Windterm, Can you check the problem?

MilkTeaNo7 commented 7 months ago

At least I'm using 2.60 now and I don't have this problem.

ymsha88 commented 3 months ago

Same issue here, can connect through MobaXterm, but cannot connect through WindTerm with the same privatekey. here is the result.

Access denied for 'none'. Authentication that can continue: publickey 会话已断开连接,按回车重新连接。

Not sure what is here for 'none' (这里的 'none' 是什么含义?)