Skip to content

scp to non existing directory hangs #1345

@matkaminski

Description

@matkaminski

"OpenSSH for Windows" version
7.9.0.0

Server OperatingSystem
Windows Server 2016 Datacenter

Client OperatingSystem
MacOs/Linux/Other

What is failing
I am using openssh server for windows version 7.9.0.0 on Windows Server 2016. I am using it for scp and it works if i am uploading files to existing directories. If i will specify target directory not existing on my Windows Server then scp command get stuck and hangs forever.

Last lines in my client log:
debug1: Sending command: scp -v -t testdir/testfile
debug2: channel 0: request exec confirm 1
debug3: send packet: type 98
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 2097152
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: exec request accepted on channel 0
Sending file modes: C0644 0 testfile
...

Last lines in my server log:
8164 2019-02-21 10:18:37.834 debug3: LsaLogonUser Succeeded (Impersonation: 1)
8164 2019-02-21 10:18:37.850 debug3: spawning "C:\Program Files\OpenSSH-Win64\sshd.exe" -z
8164 2019-02-21 10:18:37.865 User child is on pid 2056
8164 2019-02-21 10:18:37.865 debug3: send_rexec_state: entering fd = 5 config len 289
8164 2019-02-21 10:18:37.865 debug3: ssh_msg_send: type 0
8164 2019-02-21 10:18:37.865 debug3: send_rexec_state: done
8164 2019-02-21 10:18:37.865 debug3: ssh_msg_send: type 0
8164 2019-02-21 10:18:37.865 debug3: ssh_msg_send: type 0
8164 2019-02-21 10:18:37.865 debug3: ssh_msg_send: type 0
8164 2019-02-21 10:18:37.865 debug3: ssh_msg_send: type 0
8164 2019-02-21 10:18:37.865 debug3: ssh_msg_send: type 0

Do you know what might cause it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions