* sftp hangs when trying to connect to SFTP server
@ 2021-12-04 14:35 Mark Hansen
2021-12-04 15:26 ` Marco Atzeri
2021-12-04 15:30 ` Andrey Repin
0 siblings, 2 replies; 4+ messages in thread
From: Mark Hansen @ 2021-12-04 14:35 UTC (permalink / raw)
To: cygwin
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@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?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sftp hangs when trying to connect to SFTP server
2021-12-04 14:35 sftp hangs when trying to connect to SFTP server Mark Hansen
@ 2021-12-04 15:26 ` Marco Atzeri
2021-12-04 15:30 ` Andrey Repin
1 sibling, 0 replies; 4+ messages in thread
From: Marco Atzeri @ 2021-12-04 15:26 UTC (permalink / raw)
To: cygwin
On 04.12.2021 15:35, Mark Hansen wrote:
> 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.
>
Hi Mark,
can you try with 1st entry in:
https://www.sftp.net/public-online-sftp-servers
sftp -P 22 demo@test.rebex.net
(demo@test.rebex.net) Password:
Connected to test.rebex.net.
sftp> ls
aspnet_client pub readme.txt
sftp> ls pub
pub/example
sftp> ls pub/example/
pub/example/KeyGenerator.png
pub/example/KeyGeneratorSmall.png
pub/example/ResumableTransfer.png
pub/example/WinFormClient.png
pub/example/WinFormClientSmall.png
pub/example/imap-console-client.png
pub/example/mail-editor.png
pub/example/mail-send-winforms.png
pub/example/mime-explorer.png
pub/example/pocketftp.png
pub/example/pocketftpSmall.png
pub/example/pop3-browser.png
pub/example/pop3-console-client.png
pub/example/readme.txt
pub/example/winceclient.png
pub/example/winceclientSmall.png
sftp> quit
> Any idea what is causing this? What can I do to troubleshoot this further?
please provide as attachment the cygcheck.out
as mentioned on https://cygwin.com/problems.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sftp hangs when trying to connect to SFTP server
2021-12-04 14:35 sftp hangs when trying to connect to SFTP server Mark Hansen
2021-12-04 15:26 ` Marco Atzeri
@ 2021-12-04 15:30 ` Andrey Repin
2021-12-04 19:18 ` Mark Hansen
1 sibling, 1 reply; 4+ messages in thread
From: Andrey Repin @ 2021-12-04 15:30 UTC (permalink / raw)
To: Mark Hansen, cygwin
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...
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sftp hangs when trying to connect to SFTP server
2021-12-04 15:30 ` Andrey Repin
@ 2021-12-04 19:18 ` Mark Hansen
0 siblings, 0 replies; 4+ messages in thread
From: Mark Hansen @ 2021-12-04 19:18 UTC (permalink / raw)
To: cygwin
On 12/4/2021 7:30 AM, Andrey Repin wrote:
> 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.
Yes, it seems. I wonder how this was working before. I have notes showing that I've always
connected using 'sftp'. Anyway, I'm able to connect using 'ftp' so I think the issue
is resolved.
Thanks,
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-12-04 19:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-04 14:35 sftp hangs when trying to connect to SFTP server Mark Hansen
2021-12-04 15:26 ` Marco Atzeri
2021-12-04 15:30 ` Andrey Repin
2021-12-04 19:18 ` Mark Hansen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).