From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:108]) by sourceware.org (Postfix) with ESMTPS id 9AFBB3858D28 for ; Sat, 4 Dec 2021 15:35:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9AFBB3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru Received: from postback10p.mail.yandex.net (postback10p.mail.yandex.net [IPv6:2a02:6b8:c03:701:0:640:be6c:179d]) by forward105p.mail.yandex.net (Yandex) with ESMTP id A66AC2FD8FAB; Sat, 4 Dec 2021 18:35:01 +0300 (MSK) Received: from forward500j.mail.yandex.net (forward500j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::110]) by postback10p.mail.yandex.net (Yandex) with ESMTP id A4856402EEF; Sat, 4 Dec 2021 18:35:01 +0300 (MSK) Received: from myt5-6c2f0357e28d.qloud-c.yandex.net (myt5-6c2f0357e28d.qloud-c.yandex.net [IPv6:2a02:6b8:c12:1d21:0:640:6c2f:357]) by forward500j.mail.yandex.net (Yandex) with ESMTP id A158D6CB6402; Sat, 4 Dec 2021 18:35:01 +0300 (MSK) Received: from myt5-89cdf5c4a3a5.qloud-c.yandex.net (myt5-89cdf5c4a3a5.qloud-c.yandex.net [2a02:6b8:c12:289b:0:640:89cd:f5c4]) by myt5-6c2f0357e28d.qloud-c.yandex.net (mxback/Yandex) with ESMTP id vXpgFyS2XH-Z1ben8f6; Sat, 04 Dec 2021 18:35:01 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1638632101; bh=OZ9hET7zA5wveeE9xgd/Y7S7MM6PMcqWLWKrT2aqJyo=; h=In-Reply-To:Subject:From:Message-ID:References:Date:Reply-To:To; b=iOcKiirYV7WW15rVYmnECIXUujzlaIiPXMHaG5/7jGCh5BLjYWFE+C5H5pQ9HcCqQ I9njiQe7sdd+zqwU+XNWcrkp2Q2oOH7cyM4/wMeSo46p9qKKy3XIbU/EncyCd+zgnQ K4vGdoVD/Ch+hroo+cWaIYm2c7c3+Tl4r5QdKtKM= Authentication-Results: myt5-6c2f0357e28d.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by myt5-89cdf5c4a3a5.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id VMrW7vWS0K-Z0QWapAQ; Sat, 04 Dec 2021 18:35:00 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Fwd: 2 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Sat, 04 Dec 2021 15:30:45 -0000 Date: Sat, 4 Dec 2021 18:30:45 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home Reply-To: cygwin@cygwin.com X-Priority: 3 (Normal) Message-ID: <1966914529.20211204183045@yandex.ru> To: Mark Hansen , cygwin@cygwin.com Subject: Re: sftp hangs when trying to connect to SFTP server In-Reply-To: <28ffecdf-65ce-1482-fa20-b81068055e40@mehconsulting.com> References: <28ffecdf-65ce-1482-fa20-b81068055e40@mehconsulting.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2021 15:35:06 -0000 Greetings, Mark Hansen! > I'm not sure when this started, but I know for sure I was able to do this in the past. > I'm running cygwin on Windows 10 and want to connect to an SFTP server using the 'sftp' command. > Note that when I try to connect to the same SFTP server using a different client, File Zilla, it works. It seems you are connection to an FTP(S) server, not SSH(SFTP) server. > When I run sftp, it appears to hang. I've run it with -vvvv to get some > debugging output and get the following: > 1001 jdk16->> sftp -vvvv -P 2100 192.168.160.62 > OpenSSH_8.8p1, OpenSSL 1.1.1l 24 Aug 2021 > debug1: Reading configuration data /cygdrive/c/Users/mark.hansen/.ssh/config > debug1: /cygdrive/c/Users/mark.hansen/.ssh/config line 1: Applying options for * > debug1: Reading configuration data /etc/ssh_config > debug1: /etc/ssh_config line 46: Applying options for * > debug2: resolve_canonicalize: hostname 192.168.160.62 is address > debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> > '/cygdrive/c/Users/mark.hansen/.ssh/known_hosts' > debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> > '/cygdrive/c/Users/mark.hansen/.ssh/known_hosts2' > debug3: ssh_connect_direct: entering > debug1: Connecting to 192.168.160.62 [192.168.160.62] port 2100. > debug3: set_sock_tos: set socket 4 IP_TOS 0x48 > debug1: Connection established. > debug1: identity file /cygdrive/c/Users/mark.hansen/.ssh/id_rsa type 0 > debug1: identity file /cygdrive/c/Users/mark.hansen/.ssh/id_rsa-cert type -1 > debug1: identity file /cygdrive/c/Users/mark.hansen/.ssh/id_dsa type -1 > debug1: identity file /cygdrive/c/Users/mark.hansen/.ssh/id_dsa-cert type -1 > debug1: identity file /cygdrive/c/Users/mark.hansen/.ssh/id_ecdsa type -1 > debug1: identity file /cygdrive/c/Users/mark.hansen/.ssh/id_ecdsa-cert type -1 > debug1: identity file /cygdrive/c/Users/mark.hansen/.ssh/id_ecdsa_sk type -1 > debug1: identity file /cygdrive/c/Users/mark.hansen/.ssh/id_ecdsa_sk-cert type -1 > debug1: identity file /cygdrive/c/Users/mark.hansen/.ssh/id_ed25519 type -1 > debug1: identity file /cygdrive/c/Users/mark.hansen/.ssh/id_ed25519-cert type -1 > debug1: identity file /cygdrive/c/Users/mark.hansen/.ssh/id_ed25519_sk type -1 > debug1: identity file /cygdrive/c/Users/mark.hansen/.ssh/id_ed25519_sk-cert type -1 > debug1: identity file /cygdrive/c/Users/mark.hansen/.ssh/id_xmss type -1 > debug1: identity file /cygdrive/c/Users/mark.hansen/.ssh/id_xmss-cert type -1 > debug1: Local version string SSH-2.0-OpenSSH_8.8 > debug1: kex_exchange_identification: banner line 0: 220 Welcome to AT FTP service > debug1: kex_exchange_identification: banner line 1: 530 Please login with USER and PASS. > ... after some time ... > debug1: kex_exchange_identification: banner line 2: 421 Timeout. > kex_exchange_identification: Connection closed by remote host > Connection closed by 192.168.160.62 port 2100 > Connection closed > Here is my local config file (.ssh/config): > Host * > Protocol 2 > ForwardX11Trusted yes > ForwardX11 yes > Here is /etc/ssh_config: > Host * > ForwardX11 yes > Yesterday, I upgraded to the latest cygwin packages and now the cygwin DLL is version 3.3.2 > I tried running the command with the login user name on the command line (user@192.168.160.62) and > assuming it was just waiting for the password, I tried entering it, but the characters were > just echoed to the terminal and the process continued to hang. > Any idea what is causing this? What can I do to troubleshoot this further? See above, connect to an actual SSH server. -- With best regards, Andrey Repin Saturday, December 4, 2021 18:26:06 Sorry for my terrible english...