delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.4.1 sourceware.org 35A7D3858422 |
Authentication-Results: | sourceware.org; dmarc=none (p=none dis=none) |
header.from=mehconsulting.com | |
Authentication-Results: | sourceware.org; spf=pass smtp.mailfrom=m.gmane-mx.org |
X-Injected-Via-Gmane: | http://gmane.org/ |
To: | cygwin AT cygwin DOT com |
From: | Mark Hansen <cygwin AT mehconsulting DOT com> |
Subject: | sftp hangs when trying to connect to SFTP server |
Date: | Sat, 4 Dec 2021 06:35:07 -0800 |
Message-ID: | <28ffecdf-65ce-1482-fa20-b81068055e40@mehconsulting.com> |
Mime-Version: | 1.0 |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 |
Thunderbird/52.7.0 | |
X-Mozilla-News-Host: | news://news.gmane.io:119 |
X-Spam-Status: | No, score=-1.0 required=5.0 tests=BAYES_00, |
HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, | |
TXREP autolearn=no 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 AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
Team, 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. 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 AT 192 DOT 168 DOT 160 DOT 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? -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |