sftp loop forwever after 100% completeSFTP logging: is there a way?What port does SFTP use?Difference between...

Why is this plane circling around the Lucknow airport every day?

Rejected in 4th interview round citing insufficient years of experience

What is the likely impact of grounding an entire aircraft series?

Low budget alien movie about the Earth being cooked

Placing subfig vertically

Fourth person (in Slavey language)

Things to avoid when using voltage regulators?

Word for a person who has no opinion about whether god exists

Do items de-spawn in Diablo?

Is there an equal sign with wider gap?

A three room house but a three headED dog

Why is there a voltage between the mains ground and my radiator?

Could you please stop shuffling the deck and play already?

How could our ancestors have domesticated a solitary predator?

Do I really need to have a scientific explanation for my premise?

Who deserves to be first and second author? PhD student who collected data, research associate who wrote the paper or supervisor?

How do I express some one as a black person?

Does "variables should live in the smallest scope as possible" include the case "variables should not exist if possible"?

The bar has been raised

Force user to remove USB token

What Happens when Passenger Refuses to Fly Boeing 737 Max?

Why the color red for the Republican Party

Good for you! in Russian

Do f-stop and exposure time perfectly cancel?



sftp loop forwever after 100% complete


SFTP logging: is there a way?What port does SFTP use?Difference between “SFTP Client Side” and “SFTP Server Side”Allow SFTP but disallow SSH?User can't SFTP after chrootSFTP creates file but can't complete transferOpenSSH: Difference between internal-sftp and sftp-serverDeny deletion after SFTP uploadSFTP Issue - Permission deniedSFTP login error - Broken pipe Couldn't read packet: Connection reset by peer













0















we're running CentOS 7 on new servers. We've problem in sftp files between the systems. The sftp session keeps running even it shows 100% complete. Here comes debug output:



sftp client: [snipped]



      SSH_CLIENT=192.168.77.82 39456 22
SSH_CONNECTION=192.168.77.82 39456 192.168.77.90 22
SELINUX_ROLE_REQUESTED=
SELINUX_LEVEL_REQUESTED=
SELINUX_USE_CURRENT_RANGE=
XDG_SESSION_ID=30
XDG_RUNTIME_DIR=/run/user/1000
debug2: channel 0: written 443 to efd 6
Sending file modes: C0644 470408 strace-4.12-9.el7.x86_64.rpm
debug2: channel 0: rcvd ext data 48
Sink: C0644 470408 strace-4.12-9.el7.x86_64.rpm
debug2: channel 0: written 48 to efd 6

strace-4.12-9.el7.x86_64.rpm 100% 459KB 76.6KB/s 00:06
strace-4.12-9.el7.x86_64.rpm 100% 459KB 65.6KB/s 00:07
strace-4.12-9.el7.x86_64.rpm 100% 459KB 4.3KB/s 01:48
debug2: channel 0: rcvd adjust 98346
strace-4.12-9.el7.x86_64.rpm 100% 459KB 2.8KB/s 02:45 debug2: channel 0: rcvd adjust 131072
strace-4.12-9.el7.x86_64.rpm 100% 459KB 2.6KB/s 02:56
debug2: channel 0: rcvd adjust 109961
debug2: channel 0: read<=0 rfd 4 len 0
debug2: channel 0: read failed
debug2: channel 0: close_read
debug2: channel 0: input open -> drain
debug2: channel 0: ibuf empty
debug2: channel 0: send eof
debug3: send packet: type 96
debug2: channel 0: input drain -> closed
debug3: receive packet: type 96
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug3: receive packet: type 97
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug3: send packet: type 97
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
#0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

debug3: send packet: type 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 473052, received 3384 bytes, in 254.8 seconds
Bytes per second: sent 1856.3, received 13.3
debug1: Exit status 0


sftp server [snipped]:



debug3: mm_request_send entering: type 114
debug3: mm_request_receive_expect entering: type 115
debug3: mm_request_receive entering
debug3: mm_request_receive entering
debug3: monitor_read: checking request 114
debug3: mm_answer_audit_command entering
debug2: session_new: allocate (allocated 0 max 10)
debug3: session_unused: session id 0 unused
debug1: session_new: session 0
debug3: mm_request_send entering: type 115
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x08
debug2: fd 13 setting O_NONBLOCK
debug2: fd 12 setting O_NONBLOCK
debug2: fd 15 setting O_NONBLOCK
debug3: mm_forward_audit_messages: entering
debug3: send packet: type 99
debug3: mm_request_receive entering
debug3: monitor_read: checking request 124
debug2: channel 0: read 246 from efd 15
debug2: channel 0: rwin 2097152 elen 246 euse 1
debug2: channel 0: sent ext data 246
debug2: channel 0: read 443 from efd 15
debug2: channel 0: rwin 2096906 elen 443 euse 1
debug2: channel 0: sent ext data 443
debug2: channel 0: read 48 from efd 15
debug2: channel 0: rwin 2096462 elen 48 euse 1
debug2: channel 0: sent ext data 48



<loops for minutes here>


debug2: channel 0: window 1998806 sent adjust 98346
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1987191 sent adjust 109961
debug3: receive packet: type 96
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug2: channel 0: read<=0 rfd 13 len 0
debug2: channel 0: read failed
debug2: channel 0: close_read
debug2: channel 0: input open -> drain
debug2: channel 0: read 0 from efd 15
debug2: channel 0: closing read-efd 15
debug2: channel 0: ibuf empty
debug2: channel 0: send eof
debug3: send packet: type 96
debug2: channel 0: input drain -> closed
debug2: notify_done: reading
debug1: Received SIGCHLD.
debug1: session_by_pid: pid 7934
debug1: session_exit_message: session 0 channel 0 pid 7934
debug2: channel 0: request exit-status confirm 0
debug3: send packet: type 98
debug1: session_exit_message: release channel 0
debug2: channel 0: send close
debug3: send packet: type 97
debug3: channel 0: will not send data after close
debug3: receive packet: type 97
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug2: channel 0: is dead
debug2: channel 0: gc: notify user
debug1: session_by_channel: session 0 channel 0
debug1: session_close_by_channel: channel 0 child 0
Close session: user elbisna from 192.168.77.82 port 39456 id 0
debug3: mm_audit_end_command entering command scp -v -t /tmp/
debug3: mm_request_send entering: type 116
debug3: session_unused: session id 0 unused
debug2: channel 0: gc: user detached
debug3: mm_request_receive entering
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug3: monitor_read: checking request 116
debug1: channel 0: free: server-session, nchannels 1
debug3: mm_answer_audit_end_command entering
debug3: mm_session_close: session 0 pid 0
debug3: channel 0: status: The following connections are open:
#0 server-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

debug3: mm_session_close: command 0
debug3: receive packet: type 1
Received disconnect from 192.168.77.82 port 39456:11: disconnected by user
Disconnected from 192.168.77.82 port 39456
debug1: do_cleanup
debug3: PAM: sshpam_thread_cleanup entering
debug3: mm_request_send entering: type 124
debug3: mm_request_send entering: type 122
debug3: mm_request_receive_expect entering: type 123
debug3: mm_request_receive entering
debug3: session_unused: session id 0 unused
debug3: mm_request_receive entering
debug3: monitor_read: checking request 124
debug3: mm_request_receive entering
debug3: monitor_read: checking request 122
debug3: mm_request_send entering: type 123
debug3: mm_request_receive entering
debug1: do_cleanup
debug1: PAM: cleanup
debug1: PAM: closing session
debug1: PAM: deleting credentials
debug3: PAM: sshpam_thread_cleanup entering


Strace shows it keeps looping. sftp small files like /etc/hosts looks better, although still a bit slow. ssh between the same pair of hosts doesn't have problem at all.



We've no idea at all. Would anyone please help? Thanks a lot.









share



























    0















    we're running CentOS 7 on new servers. We've problem in sftp files between the systems. The sftp session keeps running even it shows 100% complete. Here comes debug output:



    sftp client: [snipped]



          SSH_CLIENT=192.168.77.82 39456 22
    SSH_CONNECTION=192.168.77.82 39456 192.168.77.90 22
    SELINUX_ROLE_REQUESTED=
    SELINUX_LEVEL_REQUESTED=
    SELINUX_USE_CURRENT_RANGE=
    XDG_SESSION_ID=30
    XDG_RUNTIME_DIR=/run/user/1000
    debug2: channel 0: written 443 to efd 6
    Sending file modes: C0644 470408 strace-4.12-9.el7.x86_64.rpm
    debug2: channel 0: rcvd ext data 48
    Sink: C0644 470408 strace-4.12-9.el7.x86_64.rpm
    debug2: channel 0: written 48 to efd 6

    strace-4.12-9.el7.x86_64.rpm 100% 459KB 76.6KB/s 00:06
    strace-4.12-9.el7.x86_64.rpm 100% 459KB 65.6KB/s 00:07
    strace-4.12-9.el7.x86_64.rpm 100% 459KB 4.3KB/s 01:48
    debug2: channel 0: rcvd adjust 98346
    strace-4.12-9.el7.x86_64.rpm 100% 459KB 2.8KB/s 02:45 debug2: channel 0: rcvd adjust 131072
    strace-4.12-9.el7.x86_64.rpm 100% 459KB 2.6KB/s 02:56
    debug2: channel 0: rcvd adjust 109961
    debug2: channel 0: read<=0 rfd 4 len 0
    debug2: channel 0: read failed
    debug2: channel 0: close_read
    debug2: channel 0: input open -> drain
    debug2: channel 0: ibuf empty
    debug2: channel 0: send eof
    debug3: send packet: type 96
    debug2: channel 0: input drain -> closed
    debug3: receive packet: type 96
    debug2: channel 0: rcvd eof
    debug2: channel 0: output open -> drain
    debug2: channel 0: obuf empty
    debug2: channel 0: close_write
    debug2: channel 0: output drain -> closed
    debug3: receive packet: type 98
    debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
    debug3: receive packet: type 97
    debug2: channel 0: rcvd close
    debug3: channel 0: will not send data after close
    debug2: channel 0: almost dead
    debug2: channel 0: gc: notify user
    debug2: channel 0: gc: user detached
    debug2: channel 0: send close
    debug3: send packet: type 97
    debug2: channel 0: is dead
    debug2: channel 0: garbage collecting
    debug1: channel 0: free: client-session, nchannels 1
    debug3: channel 0: status: The following connections are open:
    #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

    debug3: send packet: type 1
    debug1: fd 0 clearing O_NONBLOCK
    debug1: fd 1 clearing O_NONBLOCK
    Transferred: sent 473052, received 3384 bytes, in 254.8 seconds
    Bytes per second: sent 1856.3, received 13.3
    debug1: Exit status 0


    sftp server [snipped]:



    debug3: mm_request_send entering: type 114
    debug3: mm_request_receive_expect entering: type 115
    debug3: mm_request_receive entering
    debug3: mm_request_receive entering
    debug3: monitor_read: checking request 114
    debug3: mm_answer_audit_command entering
    debug2: session_new: allocate (allocated 0 max 10)
    debug3: session_unused: session id 0 unused
    debug1: session_new: session 0
    debug3: mm_request_send entering: type 115
    debug2: fd 3 setting TCP_NODELAY
    debug3: ssh_packet_set_tos: set IP_TOS 0x08
    debug2: fd 13 setting O_NONBLOCK
    debug2: fd 12 setting O_NONBLOCK
    debug2: fd 15 setting O_NONBLOCK
    debug3: mm_forward_audit_messages: entering
    debug3: send packet: type 99
    debug3: mm_request_receive entering
    debug3: monitor_read: checking request 124
    debug2: channel 0: read 246 from efd 15
    debug2: channel 0: rwin 2097152 elen 246 euse 1
    debug2: channel 0: sent ext data 246
    debug2: channel 0: read 443 from efd 15
    debug2: channel 0: rwin 2096906 elen 443 euse 1
    debug2: channel 0: sent ext data 443
    debug2: channel 0: read 48 from efd 15
    debug2: channel 0: rwin 2096462 elen 48 euse 1
    debug2: channel 0: sent ext data 48



    <loops for minutes here>


    debug2: channel 0: window 1998806 sent adjust 98346
    debug2: channel 0: window 1966080 sent adjust 131072
    debug2: channel 0: window 1966080 sent adjust 131072
    debug2: channel 0: window 1987191 sent adjust 109961
    debug3: receive packet: type 96
    debug2: channel 0: rcvd eof
    debug2: channel 0: output open -> drain
    debug2: channel 0: obuf empty
    debug2: channel 0: close_write
    debug2: channel 0: output drain -> closed
    debug2: channel 0: read<=0 rfd 13 len 0
    debug2: channel 0: read failed
    debug2: channel 0: close_read
    debug2: channel 0: input open -> drain
    debug2: channel 0: read 0 from efd 15
    debug2: channel 0: closing read-efd 15
    debug2: channel 0: ibuf empty
    debug2: channel 0: send eof
    debug3: send packet: type 96
    debug2: channel 0: input drain -> closed
    debug2: notify_done: reading
    debug1: Received SIGCHLD.
    debug1: session_by_pid: pid 7934
    debug1: session_exit_message: session 0 channel 0 pid 7934
    debug2: channel 0: request exit-status confirm 0
    debug3: send packet: type 98
    debug1: session_exit_message: release channel 0
    debug2: channel 0: send close
    debug3: send packet: type 97
    debug3: channel 0: will not send data after close
    debug3: receive packet: type 97
    debug2: channel 0: rcvd close
    debug3: channel 0: will not send data after close
    debug2: channel 0: is dead
    debug2: channel 0: gc: notify user
    debug1: session_by_channel: session 0 channel 0
    debug1: session_close_by_channel: channel 0 child 0
    Close session: user elbisna from 192.168.77.82 port 39456 id 0
    debug3: mm_audit_end_command entering command scp -v -t /tmp/
    debug3: mm_request_send entering: type 116
    debug3: session_unused: session id 0 unused
    debug2: channel 0: gc: user detached
    debug3: mm_request_receive entering
    debug2: channel 0: is dead
    debug2: channel 0: garbage collecting
    debug3: monitor_read: checking request 116
    debug1: channel 0: free: server-session, nchannels 1
    debug3: mm_answer_audit_end_command entering
    debug3: mm_session_close: session 0 pid 0
    debug3: channel 0: status: The following connections are open:
    #0 server-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

    debug3: mm_session_close: command 0
    debug3: receive packet: type 1
    Received disconnect from 192.168.77.82 port 39456:11: disconnected by user
    Disconnected from 192.168.77.82 port 39456
    debug1: do_cleanup
    debug3: PAM: sshpam_thread_cleanup entering
    debug3: mm_request_send entering: type 124
    debug3: mm_request_send entering: type 122
    debug3: mm_request_receive_expect entering: type 123
    debug3: mm_request_receive entering
    debug3: session_unused: session id 0 unused
    debug3: mm_request_receive entering
    debug3: monitor_read: checking request 124
    debug3: mm_request_receive entering
    debug3: monitor_read: checking request 122
    debug3: mm_request_send entering: type 123
    debug3: mm_request_receive entering
    debug1: do_cleanup
    debug1: PAM: cleanup
    debug1: PAM: closing session
    debug1: PAM: deleting credentials
    debug3: PAM: sshpam_thread_cleanup entering


    Strace shows it keeps looping. sftp small files like /etc/hosts looks better, although still a bit slow. ssh between the same pair of hosts doesn't have problem at all.



    We've no idea at all. Would anyone please help? Thanks a lot.









    share

























      0












      0








      0








      we're running CentOS 7 on new servers. We've problem in sftp files between the systems. The sftp session keeps running even it shows 100% complete. Here comes debug output:



      sftp client: [snipped]



            SSH_CLIENT=192.168.77.82 39456 22
      SSH_CONNECTION=192.168.77.82 39456 192.168.77.90 22
      SELINUX_ROLE_REQUESTED=
      SELINUX_LEVEL_REQUESTED=
      SELINUX_USE_CURRENT_RANGE=
      XDG_SESSION_ID=30
      XDG_RUNTIME_DIR=/run/user/1000
      debug2: channel 0: written 443 to efd 6
      Sending file modes: C0644 470408 strace-4.12-9.el7.x86_64.rpm
      debug2: channel 0: rcvd ext data 48
      Sink: C0644 470408 strace-4.12-9.el7.x86_64.rpm
      debug2: channel 0: written 48 to efd 6

      strace-4.12-9.el7.x86_64.rpm 100% 459KB 76.6KB/s 00:06
      strace-4.12-9.el7.x86_64.rpm 100% 459KB 65.6KB/s 00:07
      strace-4.12-9.el7.x86_64.rpm 100% 459KB 4.3KB/s 01:48
      debug2: channel 0: rcvd adjust 98346
      strace-4.12-9.el7.x86_64.rpm 100% 459KB 2.8KB/s 02:45 debug2: channel 0: rcvd adjust 131072
      strace-4.12-9.el7.x86_64.rpm 100% 459KB 2.6KB/s 02:56
      debug2: channel 0: rcvd adjust 109961
      debug2: channel 0: read<=0 rfd 4 len 0
      debug2: channel 0: read failed
      debug2: channel 0: close_read
      debug2: channel 0: input open -> drain
      debug2: channel 0: ibuf empty
      debug2: channel 0: send eof
      debug3: send packet: type 96
      debug2: channel 0: input drain -> closed
      debug3: receive packet: type 96
      debug2: channel 0: rcvd eof
      debug2: channel 0: output open -> drain
      debug2: channel 0: obuf empty
      debug2: channel 0: close_write
      debug2: channel 0: output drain -> closed
      debug3: receive packet: type 98
      debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
      debug3: receive packet: type 97
      debug2: channel 0: rcvd close
      debug3: channel 0: will not send data after close
      debug2: channel 0: almost dead
      debug2: channel 0: gc: notify user
      debug2: channel 0: gc: user detached
      debug2: channel 0: send close
      debug3: send packet: type 97
      debug2: channel 0: is dead
      debug2: channel 0: garbage collecting
      debug1: channel 0: free: client-session, nchannels 1
      debug3: channel 0: status: The following connections are open:
      #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

      debug3: send packet: type 1
      debug1: fd 0 clearing O_NONBLOCK
      debug1: fd 1 clearing O_NONBLOCK
      Transferred: sent 473052, received 3384 bytes, in 254.8 seconds
      Bytes per second: sent 1856.3, received 13.3
      debug1: Exit status 0


      sftp server [snipped]:



      debug3: mm_request_send entering: type 114
      debug3: mm_request_receive_expect entering: type 115
      debug3: mm_request_receive entering
      debug3: mm_request_receive entering
      debug3: monitor_read: checking request 114
      debug3: mm_answer_audit_command entering
      debug2: session_new: allocate (allocated 0 max 10)
      debug3: session_unused: session id 0 unused
      debug1: session_new: session 0
      debug3: mm_request_send entering: type 115
      debug2: fd 3 setting TCP_NODELAY
      debug3: ssh_packet_set_tos: set IP_TOS 0x08
      debug2: fd 13 setting O_NONBLOCK
      debug2: fd 12 setting O_NONBLOCK
      debug2: fd 15 setting O_NONBLOCK
      debug3: mm_forward_audit_messages: entering
      debug3: send packet: type 99
      debug3: mm_request_receive entering
      debug3: monitor_read: checking request 124
      debug2: channel 0: read 246 from efd 15
      debug2: channel 0: rwin 2097152 elen 246 euse 1
      debug2: channel 0: sent ext data 246
      debug2: channel 0: read 443 from efd 15
      debug2: channel 0: rwin 2096906 elen 443 euse 1
      debug2: channel 0: sent ext data 443
      debug2: channel 0: read 48 from efd 15
      debug2: channel 0: rwin 2096462 elen 48 euse 1
      debug2: channel 0: sent ext data 48



      <loops for minutes here>


      debug2: channel 0: window 1998806 sent adjust 98346
      debug2: channel 0: window 1966080 sent adjust 131072
      debug2: channel 0: window 1966080 sent adjust 131072
      debug2: channel 0: window 1987191 sent adjust 109961
      debug3: receive packet: type 96
      debug2: channel 0: rcvd eof
      debug2: channel 0: output open -> drain
      debug2: channel 0: obuf empty
      debug2: channel 0: close_write
      debug2: channel 0: output drain -> closed
      debug2: channel 0: read<=0 rfd 13 len 0
      debug2: channel 0: read failed
      debug2: channel 0: close_read
      debug2: channel 0: input open -> drain
      debug2: channel 0: read 0 from efd 15
      debug2: channel 0: closing read-efd 15
      debug2: channel 0: ibuf empty
      debug2: channel 0: send eof
      debug3: send packet: type 96
      debug2: channel 0: input drain -> closed
      debug2: notify_done: reading
      debug1: Received SIGCHLD.
      debug1: session_by_pid: pid 7934
      debug1: session_exit_message: session 0 channel 0 pid 7934
      debug2: channel 0: request exit-status confirm 0
      debug3: send packet: type 98
      debug1: session_exit_message: release channel 0
      debug2: channel 0: send close
      debug3: send packet: type 97
      debug3: channel 0: will not send data after close
      debug3: receive packet: type 97
      debug2: channel 0: rcvd close
      debug3: channel 0: will not send data after close
      debug2: channel 0: is dead
      debug2: channel 0: gc: notify user
      debug1: session_by_channel: session 0 channel 0
      debug1: session_close_by_channel: channel 0 child 0
      Close session: user elbisna from 192.168.77.82 port 39456 id 0
      debug3: mm_audit_end_command entering command scp -v -t /tmp/
      debug3: mm_request_send entering: type 116
      debug3: session_unused: session id 0 unused
      debug2: channel 0: gc: user detached
      debug3: mm_request_receive entering
      debug2: channel 0: is dead
      debug2: channel 0: garbage collecting
      debug3: monitor_read: checking request 116
      debug1: channel 0: free: server-session, nchannels 1
      debug3: mm_answer_audit_end_command entering
      debug3: mm_session_close: session 0 pid 0
      debug3: channel 0: status: The following connections are open:
      #0 server-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

      debug3: mm_session_close: command 0
      debug3: receive packet: type 1
      Received disconnect from 192.168.77.82 port 39456:11: disconnected by user
      Disconnected from 192.168.77.82 port 39456
      debug1: do_cleanup
      debug3: PAM: sshpam_thread_cleanup entering
      debug3: mm_request_send entering: type 124
      debug3: mm_request_send entering: type 122
      debug3: mm_request_receive_expect entering: type 123
      debug3: mm_request_receive entering
      debug3: session_unused: session id 0 unused
      debug3: mm_request_receive entering
      debug3: monitor_read: checking request 124
      debug3: mm_request_receive entering
      debug3: monitor_read: checking request 122
      debug3: mm_request_send entering: type 123
      debug3: mm_request_receive entering
      debug1: do_cleanup
      debug1: PAM: cleanup
      debug1: PAM: closing session
      debug1: PAM: deleting credentials
      debug3: PAM: sshpam_thread_cleanup entering


      Strace shows it keeps looping. sftp small files like /etc/hosts looks better, although still a bit slow. ssh between the same pair of hosts doesn't have problem at all.



      We've no idea at all. Would anyone please help? Thanks a lot.









      share














      we're running CentOS 7 on new servers. We've problem in sftp files between the systems. The sftp session keeps running even it shows 100% complete. Here comes debug output:



      sftp client: [snipped]



            SSH_CLIENT=192.168.77.82 39456 22
      SSH_CONNECTION=192.168.77.82 39456 192.168.77.90 22
      SELINUX_ROLE_REQUESTED=
      SELINUX_LEVEL_REQUESTED=
      SELINUX_USE_CURRENT_RANGE=
      XDG_SESSION_ID=30
      XDG_RUNTIME_DIR=/run/user/1000
      debug2: channel 0: written 443 to efd 6
      Sending file modes: C0644 470408 strace-4.12-9.el7.x86_64.rpm
      debug2: channel 0: rcvd ext data 48
      Sink: C0644 470408 strace-4.12-9.el7.x86_64.rpm
      debug2: channel 0: written 48 to efd 6

      strace-4.12-9.el7.x86_64.rpm 100% 459KB 76.6KB/s 00:06
      strace-4.12-9.el7.x86_64.rpm 100% 459KB 65.6KB/s 00:07
      strace-4.12-9.el7.x86_64.rpm 100% 459KB 4.3KB/s 01:48
      debug2: channel 0: rcvd adjust 98346
      strace-4.12-9.el7.x86_64.rpm 100% 459KB 2.8KB/s 02:45 debug2: channel 0: rcvd adjust 131072
      strace-4.12-9.el7.x86_64.rpm 100% 459KB 2.6KB/s 02:56
      debug2: channel 0: rcvd adjust 109961
      debug2: channel 0: read<=0 rfd 4 len 0
      debug2: channel 0: read failed
      debug2: channel 0: close_read
      debug2: channel 0: input open -> drain
      debug2: channel 0: ibuf empty
      debug2: channel 0: send eof
      debug3: send packet: type 96
      debug2: channel 0: input drain -> closed
      debug3: receive packet: type 96
      debug2: channel 0: rcvd eof
      debug2: channel 0: output open -> drain
      debug2: channel 0: obuf empty
      debug2: channel 0: close_write
      debug2: channel 0: output drain -> closed
      debug3: receive packet: type 98
      debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
      debug3: receive packet: type 97
      debug2: channel 0: rcvd close
      debug3: channel 0: will not send data after close
      debug2: channel 0: almost dead
      debug2: channel 0: gc: notify user
      debug2: channel 0: gc: user detached
      debug2: channel 0: send close
      debug3: send packet: type 97
      debug2: channel 0: is dead
      debug2: channel 0: garbage collecting
      debug1: channel 0: free: client-session, nchannels 1
      debug3: channel 0: status: The following connections are open:
      #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

      debug3: send packet: type 1
      debug1: fd 0 clearing O_NONBLOCK
      debug1: fd 1 clearing O_NONBLOCK
      Transferred: sent 473052, received 3384 bytes, in 254.8 seconds
      Bytes per second: sent 1856.3, received 13.3
      debug1: Exit status 0


      sftp server [snipped]:



      debug3: mm_request_send entering: type 114
      debug3: mm_request_receive_expect entering: type 115
      debug3: mm_request_receive entering
      debug3: mm_request_receive entering
      debug3: monitor_read: checking request 114
      debug3: mm_answer_audit_command entering
      debug2: session_new: allocate (allocated 0 max 10)
      debug3: session_unused: session id 0 unused
      debug1: session_new: session 0
      debug3: mm_request_send entering: type 115
      debug2: fd 3 setting TCP_NODELAY
      debug3: ssh_packet_set_tos: set IP_TOS 0x08
      debug2: fd 13 setting O_NONBLOCK
      debug2: fd 12 setting O_NONBLOCK
      debug2: fd 15 setting O_NONBLOCK
      debug3: mm_forward_audit_messages: entering
      debug3: send packet: type 99
      debug3: mm_request_receive entering
      debug3: monitor_read: checking request 124
      debug2: channel 0: read 246 from efd 15
      debug2: channel 0: rwin 2097152 elen 246 euse 1
      debug2: channel 0: sent ext data 246
      debug2: channel 0: read 443 from efd 15
      debug2: channel 0: rwin 2096906 elen 443 euse 1
      debug2: channel 0: sent ext data 443
      debug2: channel 0: read 48 from efd 15
      debug2: channel 0: rwin 2096462 elen 48 euse 1
      debug2: channel 0: sent ext data 48



      <loops for minutes here>


      debug2: channel 0: window 1998806 sent adjust 98346
      debug2: channel 0: window 1966080 sent adjust 131072
      debug2: channel 0: window 1966080 sent adjust 131072
      debug2: channel 0: window 1987191 sent adjust 109961
      debug3: receive packet: type 96
      debug2: channel 0: rcvd eof
      debug2: channel 0: output open -> drain
      debug2: channel 0: obuf empty
      debug2: channel 0: close_write
      debug2: channel 0: output drain -> closed
      debug2: channel 0: read<=0 rfd 13 len 0
      debug2: channel 0: read failed
      debug2: channel 0: close_read
      debug2: channel 0: input open -> drain
      debug2: channel 0: read 0 from efd 15
      debug2: channel 0: closing read-efd 15
      debug2: channel 0: ibuf empty
      debug2: channel 0: send eof
      debug3: send packet: type 96
      debug2: channel 0: input drain -> closed
      debug2: notify_done: reading
      debug1: Received SIGCHLD.
      debug1: session_by_pid: pid 7934
      debug1: session_exit_message: session 0 channel 0 pid 7934
      debug2: channel 0: request exit-status confirm 0
      debug3: send packet: type 98
      debug1: session_exit_message: release channel 0
      debug2: channel 0: send close
      debug3: send packet: type 97
      debug3: channel 0: will not send data after close
      debug3: receive packet: type 97
      debug2: channel 0: rcvd close
      debug3: channel 0: will not send data after close
      debug2: channel 0: is dead
      debug2: channel 0: gc: notify user
      debug1: session_by_channel: session 0 channel 0
      debug1: session_close_by_channel: channel 0 child 0
      Close session: user elbisna from 192.168.77.82 port 39456 id 0
      debug3: mm_audit_end_command entering command scp -v -t /tmp/
      debug3: mm_request_send entering: type 116
      debug3: session_unused: session id 0 unused
      debug2: channel 0: gc: user detached
      debug3: mm_request_receive entering
      debug2: channel 0: is dead
      debug2: channel 0: garbage collecting
      debug3: monitor_read: checking request 116
      debug1: channel 0: free: server-session, nchannels 1
      debug3: mm_answer_audit_end_command entering
      debug3: mm_session_close: session 0 pid 0
      debug3: channel 0: status: The following connections are open:
      #0 server-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

      debug3: mm_session_close: command 0
      debug3: receive packet: type 1
      Received disconnect from 192.168.77.82 port 39456:11: disconnected by user
      Disconnected from 192.168.77.82 port 39456
      debug1: do_cleanup
      debug3: PAM: sshpam_thread_cleanup entering
      debug3: mm_request_send entering: type 124
      debug3: mm_request_send entering: type 122
      debug3: mm_request_receive_expect entering: type 123
      debug3: mm_request_receive entering
      debug3: session_unused: session id 0 unused
      debug3: mm_request_receive entering
      debug3: monitor_read: checking request 124
      debug3: mm_request_receive entering
      debug3: monitor_read: checking request 122
      debug3: mm_request_send entering: type 123
      debug3: mm_request_receive entering
      debug1: do_cleanup
      debug1: PAM: cleanup
      debug1: PAM: closing session
      debug1: PAM: deleting credentials
      debug3: PAM: sshpam_thread_cleanup entering


      Strace shows it keeps looping. sftp small files like /etc/hosts looks better, although still a bit slow. ssh between the same pair of hosts doesn't have problem at all.



      We've no idea at all. Would anyone please help? Thanks a lot.







      sftp





      share












      share










      share



      share










      asked 1 min ago









      user3277706user3277706

      61




      61






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f958006%2fsftp-loop-forwever-after-100-complete%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f958006%2fsftp-loop-forwever-after-100-complete%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Список ссавців Італії Природоохоронні статуси | Список |...

          Українські прізвища Зміст Історичні відомості |...