I can create a connected session, however, when trying to upload or download files, I get the errors below. It works on some SFTPs, however, a few other ones always get stuck at the upload/download after creating a successful session. Same error on Windows and Linux.
Error with verbose = 4:
ssh_scp_init: Initializing scp session write recursive on location '/SB/'
channel_open: Creating a channel 43 with 64000 window and 32768 max packet
ssh_socket_unbuffered_write: Enabling POLLOUT for socket
packet_send2: packet: wrote [len=44,padding=19,comp=24,payload=24]
channel_open: Sent a SSH_MSG_CHANNEL_OPEN type session for channel 43
ssh_socket_pollcallback: Poll callback on socket 31 (POLLOUT ), out buffer 0
ssh_socket_pollcallback: sending control flow event
ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
ssh_socket_pollcallback: Poll callback on socket 31 (POLLIN ), out buffer 0
ssh_packet_socket_callback: packet: read type 91 [len=28,padding=10,comp=17,payload=17]
ssh_packet_process: Dispatching handler for packet type 91
ssh_packet_channel_open_conf: Received SSH2_MSG_CHANNEL_OPEN_CONFIRMATION
ssh_packet_channel_open_conf: Received a CHANNEL_OPEN_CONFIRMATION for channel 43:0
ssh_packet_channel_open_conf: Remote window : 33554432, maxpacket : 35840
ssh_scp_init: Executing command: scp -t -r '/SB/'
ssh_socket_unbuffered_write: Enabling POLLOUT for socket
packet_send2: packet: wrote [len=44,padding=9,comp=34,payload=34]
channel_request: Sent a SSH_MSG_CHANNEL_REQUEST exec
ssh_socket_pollcallback: Poll callback on socket 31 (POLLOUT ), out buffer 0
ssh_socket_pollcallback: sending control flow event
ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
ssh_socket_pollcallback: Poll callback on socket 31 (POLLIN ), out buffer 0
ssh_packet_socket_callback: packet: read type 100 [len=12,padding=6,comp=5,payload=5]
ssh_packet_process: Dispatching handler for packet type 100
ssh_packet_channel_failure: Received SSH_CHANNEL_FAILURE on channel (43:0)
channel_request: Channel request exec failed
ssh_scp_init: Failed executing command: scp -t -r '/SB/'
ssh_socket_unbuffered_write: Enabling POLLOUT for socket
packet_send2: packet: wrote [len=12,padding=6,comp=5,payload=5]
ssh_channel_send_eof: Sent a EOF on client channel (43:0)
ssh_channel_read_timeout: Read (128) buffered : 0 bytes. Window: 64000
ssh_socket_pollcallback: Poll callback on socket 31 (POLLOUT ), out buffer 0
ssh_socket_pollcallback: sending control flow event
ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
ssh_socket_pollcallback: Poll callback on socket 31 (POLLIN ), out buffer 0
ssh_packet_socket_callback: packet: read type 98 [len=44,padding=18,comp=25,payload=25]
ssh_packet_process: Dispatching handler for packet type 98
channel_rcv_request: received exit-status 0
ssh_packet_socket_callback: Processing 48 bytes left in socket buffer
ssh_packet_socket_callback: packet: read type 97 [len=12,padding=6,comp=5,payload=5]
ssh_packet_process: Dispatching handler for packet type 97
channel_rcv_close: Received close on channel (43:0)
channel_rcv_close: Remote host not polite enough to send an eof before close
ssh_socket_unbuffered_write: Enabling POLLOUT for socket
packet_send2: packet: wrote [len=12,padding=6,comp=5,payload=5]
ssh_channel_close: Sent a close on client channel (43:0)
Error: SCP failure: Failed executing command: scp -t -r '/SB/'
I can create a connected session, however, when trying to upload or download files, I get the errors below. It works on some SFTPs, however, a few other ones always get stuck at the upload/download after creating a successful session. Same error on Windows and Linux.
Upload error "Error: SCP failure: Failed executing command: scp -t -r '/folder/'"
Download error Error: SCP failure: Failed executing command: scp -f -r '/folder/*'
Thank you!
Error with verbose = 4: ssh_scp_init: Initializing scp session write recursive on location '/SB/' channel_open: Creating a channel 43 with 64000 window and 32768 max packet ssh_socket_unbuffered_write: Enabling POLLOUT for socket packet_send2: packet: wrote [len=44,padding=19,comp=24,payload=24] channel_open: Sent a SSH_MSG_CHANNEL_OPEN type session for channel 43 ssh_socket_pollcallback: Poll callback on socket 31 (POLLOUT ), out buffer 0 ssh_socket_pollcallback: sending control flow event ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback ssh_socket_pollcallback: Poll callback on socket 31 (POLLIN ), out buffer 0 ssh_packet_socket_callback: packet: read type 91 [len=28,padding=10,comp=17,payload=17] ssh_packet_process: Dispatching handler for packet type 91 ssh_packet_channel_open_conf: Received SSH2_MSG_CHANNEL_OPEN_CONFIRMATION ssh_packet_channel_open_conf: Received a CHANNEL_OPEN_CONFIRMATION for channel 43:0 ssh_packet_channel_open_conf: Remote window : 33554432, maxpacket : 35840 ssh_scp_init: Executing command: scp -t -r '/SB/' ssh_socket_unbuffered_write: Enabling POLLOUT for socket packet_send2: packet: wrote [len=44,padding=9,comp=34,payload=34] channel_request: Sent a SSH_MSG_CHANNEL_REQUEST exec ssh_socket_pollcallback: Poll callback on socket 31 (POLLOUT ), out buffer 0 ssh_socket_pollcallback: sending control flow event ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback ssh_socket_pollcallback: Poll callback on socket 31 (POLLIN ), out buffer 0 ssh_packet_socket_callback: packet: read type 100 [len=12,padding=6,comp=5,payload=5] ssh_packet_process: Dispatching handler for packet type 100 ssh_packet_channel_failure: Received SSH_CHANNEL_FAILURE on channel (43:0) channel_request: Channel request exec failed ssh_scp_init: Failed executing command: scp -t -r '/SB/' ssh_socket_unbuffered_write: Enabling POLLOUT for socket packet_send2: packet: wrote [len=12,padding=6,comp=5,payload=5] ssh_channel_send_eof: Sent a EOF on client channel (43:0) ssh_channel_read_timeout: Read (128) buffered : 0 bytes. Window: 64000 ssh_socket_pollcallback: Poll callback on socket 31 (POLLOUT ), out buffer 0 ssh_socket_pollcallback: sending control flow event ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback ssh_socket_pollcallback: Poll callback on socket 31 (POLLIN ), out buffer 0 ssh_packet_socket_callback: packet: read type 98 [len=44,padding=18,comp=25,payload=25] ssh_packet_process: Dispatching handler for packet type 98 channel_rcv_request: received exit-status 0 ssh_packet_socket_callback: Processing 48 bytes left in socket buffer ssh_packet_socket_callback: packet: read type 97 [len=12,padding=6,comp=5,payload=5] ssh_packet_process: Dispatching handler for packet type 97 channel_rcv_close: Received close on channel (43:0) channel_rcv_close: Remote host not polite enough to send an eof before close ssh_socket_unbuffered_write: Enabling POLLOUT for socket packet_send2: packet: wrote [len=12,padding=6,comp=5,payload=5] ssh_channel_close: Sent a close on client channel (43:0) Error: SCP failure: Failed executing command: scp -t -r '/SB/'