libra146 / docker-topsap

使天融信开发的TopSAP运行在 docker 或 podman 中,并提供 socks5 代理服务
GNU Affero General Public License v3.0
21 stars 5 forks source link

传输较大文件时会卡死 #20

Closed zhaiyusci closed 1 week ago

zhaiyusci commented 1 week ago

您好!

我按照您的教程配置以后可以使用ssh连接服务器进行终端操作,但如果使用scp上传较大的文件(没有特别大,~10KB),就会卡死,进度条显示

 xxx.c                                              0%    0     0.0KB/s - stalled 

我的尝试:

  1. 我可以在虚拟机及其他旧版Ubuntu机器中安装 TopSAP 并上传该文件,推测不是服务器的问题。
  2. 可以通过本项目的docker-topsap上传小文件(<1KB)。
  3. 我进入docker镜像更新了TopSAP,并且使用gost取代了danted,但问题依旧(可以ssh进入远程主机,可以传小文件,但传不了大文件)。

您能否给点建议,看还有什么地方可能出问题?

祝好!

libra146 commented 1 week ago

可以使用 scp -v 命令打印一下详细日志试试吗,根据目前的信息不太能判断问题,唯一能想到的可能性就是 mtu 的问题,可否调整一下试试呢?

zhaiyusci commented 1 week ago

感谢回复。

  1. scp -vvv 的信息是这样
    
    ➜  mespimd-sw git:(main) ✗ scp -vvv -O  mespimd_host.c computserv:/home/export/online1/mdt00/shisuan/yuzhai/liugroup/yuzhai/9/. 
    Executing: program /usr/bin/ssh host computserv, user (unspecified), command scp -v -t /home/export/online1/mdt00/shisuan/yuzhai/liugroup/yuzhai/9/.
    OpenSSH_9.8p1, OpenSSL 3.1.4 24 Oct 2023
    debug1: Reading configuration data /home/yuzhai/.ssh/config
    debug1: /home/yuzhai/.ssh/config line 1: Applying options for *
    debug1: /home/yuzhai/.ssh/config line 38: Applying options for computserv
    debug1: Reading configuration data /usr/etc/ssh/ssh_config
    debug3: /usr/etc/ssh/ssh_config line 30: Including file /etc/ssh/ssh_config.d/50-suse.conf depth 0
    debug1: Reading configuration data /etc/ssh/ssh_config.d/50-suse.conf
    debug2: checking match for 'final all' host 50.1.2.125 originally computserv
    debug3: /etc/ssh/ssh_config.d/50-suse.conf line 3: not matched 'final'
    debug2: match not found
    debug3: /etc/ssh/ssh_config.d/50-suse.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config depth 1 (parse only)
    debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
    debug3: gss kex names ok: [gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512-]
    debug3: kex names ok: [curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512]
    debug1: /usr/etc/ssh/ssh_config line 31: include /usr/etc/ssh/ssh_config.d/*.conf matched no files
    debug1: /usr/etc/ssh/ssh_config line 33: Applying options for *
    debug1: configuration requests final Match pass
    debug2: resolve_canonicalize: hostname 50.1.2.125 is address
    debug1: re-parsing configuration
    debug1: Reading configuration data /home/yuzhai/.ssh/config
    debug1: /home/yuzhai/.ssh/config line 1: Applying options for *
    debug1: Reading configuration data /usr/etc/ssh/ssh_config
    debug3: /usr/etc/ssh/ssh_config line 30: Including file /etc/ssh/ssh_config.d/50-suse.conf depth 0
    debug1: Reading configuration data /etc/ssh/ssh_config.d/50-suse.conf
    debug2: checking match for 'final all' host 50.1.2.125 originally computserv
    debug3: /etc/ssh/ssh_config.d/50-suse.conf line 3: matched 'final'
    debug2: match found
    debug3: /etc/ssh/ssh_config.d/50-suse.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config depth 1
    debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
    debug3: gss kex names ok: [gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512-]
    debug3: kex names ok: [curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512]
    debug1: /usr/etc/ssh/ssh_config line 31: include /usr/etc/ssh/ssh_config.d/*.conf matched no files
    debug1: /usr/etc/ssh/ssh_config line 33: Applying options for *
    debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/yuzhai/.ssh/known_hosts'
    debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/yuzhai/.ssh/known_hosts2'
    debug3: channel_clear_timeouts: clearing
    debug1: Executing proxy command: exec nc -X 5 -x 127.0.0.1:1088 50.1.2.125 22
    debug1: identity file /home/yuzhai/.ssh/id_rsa type 0
    debug1: identity file /home/yuzhai/.ssh/id_rsa-cert type -1
    debug1: identity file /home/yuzhai/.ssh/id_ecdsa type -1
    debug1: identity file /home/yuzhai/.ssh/id_ecdsa-cert type -1
    debug1: identity file /home/yuzhai/.ssh/id_ecdsa_sk type -1
    debug1: identity file /home/yuzhai/.ssh/id_ecdsa_sk-cert type -1
    debug1: identity file /home/yuzhai/.ssh/id_ed25519 type 3
    debug1: identity file /home/yuzhai/.ssh/id_ed25519-cert type -1
    debug1: identity file /home/yuzhai/.ssh/id_ed25519_sk type -1
    debug1: identity file /home/yuzhai/.ssh/id_ed25519_sk-cert type -1
    debug1: identity file /home/yuzhai/.ssh/id_xmss type -1
    debug1: identity file /home/yuzhai/.ssh/id_xmss-cert type -1
    debug1: identity file /home/yuzhai/.ssh/id_dsa type -1
    debug1: identity file /home/yuzhai/.ssh/id_dsa-cert type -1
    debug1: Local version string SSH-2.0-OpenSSH_9.8
    debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
    debug1: compat_banner: match: OpenSSH_7.4 pat OpenSSH_7.4* compat 0x04000006
    debug2: fd 5 setting O_NONBLOCK
    debug2: fd 4 setting O_NONBLOCK
    debug1: Authenticating to 50.1.2.125:22 as 'yuzhai'
    debug3: record_hostkey: found key type ED25519 in file /home/yuzhai/.ssh/known_hosts:36
    debug3: record_hostkey: found key type ECDSA in file /home/yuzhai/.ssh/known_hosts:37
    debug3: load_hostkeys_file: loaded 2 keys from 50.1.2.125
    debug1: load_hostkeys: fopen /home/yuzhai/.ssh/known_hosts2: No such file or directory
    debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
    debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
    debug3: order_hostkeyalgs: have matching best-preference key type ssh-ed25519-cert-v01@openssh.com, using HostkeyAlgorithms verbatim
    debug3: send packet: type 20
    debug1: SSH2_MSG_KEXINIT sent
    debug3: receive packet: type 20
    debug1: SSH2_MSG_KEXINIT received
    debug2: local client KEXINIT proposal
    debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,ext-info-c,kex-strict-c-v00@openssh.com
    debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
    debug2: ciphers ctos: aes256-ctr
    debug2: ciphers stoc: aes256-ctr
    debug2: MACs ctos: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512
    debug2: MACs stoc: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512
    debug2: compression ctos: none,zlib@openssh.com,zlib
    debug2: compression stoc: none,zlib@openssh.com,zlib
    debug2: languages ctos: 
    debug2: languages stoc: 
    debug2: first_kex_follows 0 
    debug2: reserved 0 
    debug2: peer server KEXINIT proposal
    debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
    debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
    debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc
    debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc
    debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
    debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
    debug2: compression ctos: none,zlib@openssh.com
    debug2: compression stoc: none,zlib@openssh.com
    debug2: languages ctos: 
    debug2: languages stoc: 
    debug2: first_kex_follows 0 
    debug2: reserved 0 
    debug1: kex: algorithm: curve25519-sha256
    debug1: kex: host key algorithm: ssh-ed25519
    debug1: kex: server->client cipher: aes256-ctr MAC: hmac-sha2-256-etm@openssh.com compression: none
    debug1: kex: client->server cipher: aes256-ctr MAC: hmac-sha2-256-etm@openssh.com compression: none
    debug1: kex: curve25519-sha256 need=32 dh_need=32
    debug1: kex: curve25519-sha256 need=32 dh_need=32
    debug3: send packet: type 30
    debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
    debug3: receive packet: type 31
    debug1: SSH2_MSG_KEX_ECDH_REPLY received
    debug1: Server host key: ssh-ed25519 SHA256:Xn3avW7xdN9ZCWGyAntJu0/Hmusf10LqhCJ8vdhBc+Y
    debug3: record_hostkey: found key type ED25519 in file /home/yuzhai/.ssh/known_hosts:36
    debug3: record_hostkey: found key type ECDSA in file /home/yuzhai/.ssh/known_hosts:37
    debug3: load_hostkeys_file: loaded 2 keys from 50.1.2.125
    debug1: load_hostkeys: fopen /home/yuzhai/.ssh/known_hosts2: No such file or directory
    debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
    debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
    debug1: Host '50.1.2.125' is known and matches the ED25519 host key.
    debug1: Found key in /home/yuzhai/.ssh/known_hosts:36
    debug3: send packet: type 21
    debug2: ssh_set_newkeys: mode 1
    debug1: rekey out after 4294967296 blocks
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug3: receive packet: type 21
    debug1: SSH2_MSG_NEWKEYS received
    debug2: ssh_set_newkeys: mode 0
    debug1: rekey in after 4294967296 blocks
    debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,ext-info-c,kex-strict-c-v00@openssh.com
    debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
    debug2: ciphers ctos: aes256-ctr
    debug2: ciphers stoc: aes256-ctr
    debug2: MACs ctos: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512
    debug2: MACs stoc: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512
    debug2: compression ctos: none,zlib@openssh.com,zlib
    debug2: compression stoc: none,zlib@openssh.com,zlib
    debug2: languages ctos: 
    debug2: languages stoc: 
    debug2: first_kex_follows 0 
    debug2: reserved 0 
    debug3: send packet: type 5
    debug3: receive packet: type 7
    debug1: SSH2_MSG_EXT_INFO received
    debug3: kex_input_ext_info: extension server-sig-algs
    debug1: kex_ext_info_client_parse: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
    debug3: receive packet: type 6
    debug2: service_accept: ssh-userauth
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug3: send packet: type 50
    debug3: receive packet: type 51
    debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
    debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password
    debug3: preferred publickey,password,keyboard-interactive,gssapi-with-mic
    debug3: authmethod_lookup publickey
    debug3: remaining preferred: password,keyboard-interactive,gssapi-with-mic
    debug3: authmethod_is_enabled publickey
    debug1: Next authentication method: publickey
    debug3: ssh_get_authentication_socket_path: path '/tmp/ssh-XXXXXXudKBjo/agent.173949'
    debug1: get_agent_identities: bound agent to hostkey
    debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities
    debug1: Will attempt key: /home/yuzhai/.ssh/id_rsa RSA SHA256:kGCQ91C6VTc8y44/AoNL4aF1oRtu2mmHvi9let5odlM
    debug1: Will attempt key: /home/yuzhai/.ssh/id_ecdsa 
    debug1: Will attempt key: /home/yuzhai/.ssh/id_ecdsa_sk 
    debug1: Will attempt key: /home/yuzhai/.ssh/id_ed25519 ED25519 SHA256:AXSW5OdSGPnw0aDa0d6stKzJocEHTwus8ZGI+3JRyCo
    debug1: Will attempt key: /home/yuzhai/.ssh/id_ed25519_sk 
    debug1: Will attempt key: /home/yuzhai/.ssh/id_xmss 
    debug1: Will attempt key: /home/yuzhai/.ssh/id_dsa 
    debug2: pubkey_prepare: done
    debug1: Offering public key: /home/yuzhai/.ssh/id_rsa RSA SHA256:kGCQ91C6VTc8y44/AoNL4aF1oRtu2mmHvi9let5odlM
    debug3: send packet: type 50
    debug2: we sent a publickey packet, wait for reply
    debug3: receive packet: type 51
    debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
    debug1: Trying private key: /home/yuzhai/.ssh/id_ecdsa
    debug3: no such identity: /home/yuzhai/.ssh/id_ecdsa: No such file or directory
    debug1: Trying private key: /home/yuzhai/.ssh/id_ecdsa_sk
    debug3: no such identity: /home/yuzhai/.ssh/id_ecdsa_sk: No such file or directory
    debug1: Offering public key: /home/yuzhai/.ssh/id_ed25519 ED25519 SHA256:AXSW5OdSGPnw0aDa0d6stKzJocEHTwus8ZGI+3JRyCo
    debug3: send packet: type 50
    debug2: we sent a publickey packet, wait for reply
    debug3: receive packet: type 60
    debug1: Server accepts key: /home/yuzhai/.ssh/id_ed25519 ED25519 SHA256:AXSW5OdSGPnw0aDa0d6stKzJocEHTwus8ZGI+3JRyCo
    debug3: sign_and_send_pubkey: using publickey with ED25519 SHA256:AXSW5OdSGPnw0aDa0d6stKzJocEHTwus8ZGI+3JRyCo
    debug3: sign_and_send_pubkey: signing using ssh-ed25519 SHA256:AXSW5OdSGPnw0aDa0d6stKzJocEHTwus8ZGI+3JRyCo
    debug3: send packet: type 50
    debug3: receive packet: type 52
    Authenticated to 50.1.2.125 (via proxy) using "publickey".
    debug2: fd 3 setting O_NONBLOCK
    debug1: channel 0: new session [client-session] (inactive timeout: 0)
    debug3: ssh_session2_open: channel_new: 0
    debug2: channel 0: send open
    debug3: send packet: type 90
    debug1: Requesting no-more-sessions@openssh.com
    debug3: send packet: type 80
    debug1: Entering interactive session.
    debug1: pledge: filesystem
    debug3: client_repledge: enter
    debug3: receive packet: type 80
    debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
    debug3: client_input_hostkeys: received RSA key SHA256:Okxa53hNp61P8caZBd1EPn+yNH+cQ/i/Xba+sIQNelE
    debug3: client_input_hostkeys: received ECDSA key SHA256:LFQVf6p5HItYZFbO88gsqDrT0kK0zgT77jwPjGntcjU
    debug3: client_input_hostkeys: received ED25519 key SHA256:Xn3avW7xdN9ZCWGyAntJu0/Hmusf10LqhCJ8vdhBc+Y
    debug1: client_input_hostkeys: searching /home/yuzhai/.ssh/known_hosts for 50.1.2.125 / (none)
    debug3: hostkeys_foreach: reading file "/home/yuzhai/.ssh/known_hosts"
    debug3: hostkeys_find: found ssh-ed25519 key at /home/yuzhai/.ssh/known_hosts:36
    debug3: hostkeys_find: found ecdsa-sha2-nistp256 key at /home/yuzhai/.ssh/known_hosts:37
    debug1: client_input_hostkeys: searching /home/yuzhai/.ssh/known_hosts2 for 50.1.2.125 / (none)
    debug1: client_input_hostkeys: hostkeys file /home/yuzhai/.ssh/known_hosts2 does not exist
    debug3: client_input_hostkeys: 3 server keys: 1 new, 1 retained, 1 incomplete match. 0 to remove
    debug3: client_input_hostkeys: asking server to prove ownership for 1 keys
    debug3: send packet: type 80
    debug3: receive packet: type 91
    debug2: channel_input_open_confirmation: channel 0: callback start
    debug2: client_session2_setup: id 0
    debug1: Sending environment.
    debug3: Ignored env HOME
    debug1: channel 0: setting env LANG = "en_US.UTF-8"
    debug2: channel 0: request env confirm 0
    debug3: send packet: type 98
    debug1: channel 0: setting env LC_CTYPE = "en_US.UTF-8"
    debug2: channel 0: request env confirm 0
    debug3: send packet: type 98
    debug3: Ignored env LOGNAME
    debug3: Ignored env SHELL
    debug3: Ignored env USER
    debug3: Ignored env XDG_DATA_DIRS
    debug3: Ignored env XDG_RUNTIME_DIR
    debug3: Ignored env INPUT_METHOD
    debug3: Ignored env XDG_CONFIG_DIRS
    debug3: Ignored env XMODIFIERS
    debug3: Ignored env GTK_IM_MODULE
    debug3: Ignored env QT_IM_SWITCHER
    debug3: Ignored env QT_IM_MODULE
    debug3: Ignored env AUDIODRIVER
    debug3: Ignored env CONFIG_SITE
    debug3: Ignored env CPU
    debug3: Ignored env CSHEDIT
    debug3: Ignored env DBUS_SESSION_BUS_ADDRESS
    debug3: Ignored env DEBUGINFOD_URLS
    debug3: Ignored env DESKTOP_SESSION
    debug3: Ignored env DISPLAY
    debug3: Ignored env FROM_HEADER
    debug3: Ignored env GTK2_RC_FILES
    debug3: Ignored env GTK_MODULES
    debug3: Ignored env GTK_RC_FILES
    debug3: Ignored env G_BROKEN_FILENAMES
    debug3: Ignored env G_FILENAME_ENCODING
    debug3: Ignored env HISTSIZE
    debug3: Ignored env HOST
    debug3: Ignored env HOSTNAME
    debug3: Ignored env HOSTTYPE
    debug3: Ignored env ICEAUTHORITY
    debug3: Ignored env JAVA_BINDIR
    debug3: Ignored env JAVA_HOME
    debug3: Ignored env JDK_HOME
    debug3: Ignored env JRE_HOME
    debug3: Ignored env KDE_APPLICATIONS_AS_SCOPE
    debug3: Ignored env KDE_FULL_SESSION
    debug3: Ignored env KDE_SESSION_UID
    debug3: Ignored env KDE_SESSION_VERSION
    debug3: Ignored env LD_LIBRARY_PATH
    debug3: Ignored env LESS
    debug3: Ignored env LESSCLOSE
    debug3: Ignored env LESSKEY
    debug3: Ignored env LESSOPEN
    debug3: Ignored env LESS_ADVANCED_PREPROCESSOR
    debug3: Ignored env MACHTYPE
    debug3: Ignored env MAIL
    debug3: Ignored env MANPATH
    debug3: Ignored env MANPATHISSET
    debug3: Ignored env MINICOM
    debug3: Ignored env MORE
    debug3: Ignored env MOZ_GMP_PATH
    debug3: Ignored env OLDPWD
    debug3: Ignored env OSTYPE
    debug3: Ignored env PAGER
    debug3: Ignored env PAM_KWALLET5_LOGIN
    debug3: Ignored env PROFILEREAD
    debug3: Ignored env PWD
    debug3: Ignored env PYTHONSTARTUP
    debug3: Ignored env QEMU_AUDIO_DRV
    debug3: Ignored env QT_AUTO_SCREEN_SCALE_FACTOR
    debug3: Ignored env SDK_HOME
    debug3: Ignored env SESSION_MANAGER
    debug3: Ignored env SSH_AGENT_PID
    debug3: Ignored env SSH_ASKPASS
    debug3: Ignored env SSH_AUTH_SOCK
    debug3: Ignored env TERM
    debug3: Ignored env VENDOR
    debug3: Ignored env WINDOWMANAGER
    debug3: Ignored env XAUTHLOCALHOSTNAME
    debug3: Ignored env XAUTHORITY
    debug3: Ignored env XDG_CURRENT_DESKTOP
    debug3: Ignored env XDG_MENU_PREFIX
    debug3: Ignored env XDG_SEAT
    debug3: Ignored env XDG_SEAT_PATH
    debug3: Ignored env XDG_SESSION_CLASS
    debug3: Ignored env XDG_SESSION_DESKTOP
    debug3: Ignored env XDG_SESSION_ID
    debug3: Ignored env XDG_SESSION_PATH
    debug3: Ignored env XDG_SESSION_TYPE
    debug3: Ignored env XDG_VTNR
    debug3: Ignored env XKEYSYMDB
    debug3: Ignored env XNLSPATH
    debug3: Ignored env XSESSION_IS_UP
    debug3: Ignored env MANAGERPID
    debug3: Ignored env INVOCATION_ID
    debug3: Ignored env JOURNAL_STREAM
    debug3: Ignored env SYSTEMD_EXEC_PID
    debug3: Ignored env DESKTOP_STARTUP_ID
    debug3: Ignored env KITTY_WINDOW_ID
    debug3: Ignored env WINDOWID
    debug3: Ignored env COLORTERM
    debug3: Ignored env KITTY_PID
    debug3: Ignored env KITTY_PUBLIC_KEY
    debug3: Ignored env TERMINFO
    debug3: Ignored env KITTY_INSTALLATION_DIR
    debug3: Ignored env SHLVL
    debug3: Ignored env LS_OPTIONS
    debug3: Ignored env GPG_TTY
    debug3: Ignored env ZSH
    debug3: Ignored env LSCOLORS
    debug3: Ignored env LS_COLORS
    debug3: Ignored env EDITOR
    debug3: Ignored env INFOPATH
    debug3: Ignored env rime_frontend
    debug3: Ignored env CONDA_EXE
    debug3: Ignored env _CE_M
    debug3: Ignored env _CE_CONDA
    debug3: Ignored env CONDA_PYTHON_EXE
    debug3: Ignored env CONDA_SHLVL
    debug3: Ignored env SW_HOME
    debug3: Ignored env SW_PWD
    debug3: Ignored env PATH
    debug3: Ignored env _
    debug1: Sending command: scp -v -t /home/export/online1/mdt00/shisuan/yuzhai/liugroup/yuzhai/9/.
    debug2: channel 0: request exec confirm 1
    debug3: send packet: type 98
    debug3: client_repledge: enter
    debug2: channel_input_open_confirmation: channel 0: callback done
    debug2: channel 0: open confirm rwindow 0 rmax 32768
    debug3: receive packet: type 81
    debug1: client_global_hostkeys_prove_confirm: server used untrusted RSA signature algorithm ssh-rsa for key 0, disregarding
    debug3: hostkeys_foreach: reading file "/home/yuzhai/.ssh/known_hosts"
    debug3: host_delete: ED25519 key already at /home/yuzhai/.ssh/known_hosts:36
    debug3: host_delete: ECDSA key already at /home/yuzhai/.ssh/known_hosts:37
    debug1: update_known_hosts: known hosts file /home/yuzhai/.ssh/known_hosts2 does not exist
    debug3: client_repledge: enter
    debug1: pledge: fork
    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
    scp: debug1: fd 3 clearing O_NONBLOCK
    Sending file modes: C0644 12648 mespimd_host.c
    debug2: channel 0: rcvd ext data 33
    Sink: C0644 12648 mespimd_host.c
    debug2: channel 0: written 33 to efd 7
    mespimd_host.c                                                                                                                                                                                                                                                                                  0%    0     0.0KB/s   --:-- ETAscp: debug2: fd 4 setting O_NONBLOCK
    scp: debug1: fd 4 clearing O_NONBLOCK
    ^Cdebug3: send packet: type 1
    debug1: channel 0: free: client-session, nchannels 1
    debug3: channel 0: status: The following connections are open:
    #0 client-session (t4 [session] r0 i0/0 o0/0 e[write]/0 fd 3/6/7 sock -1 cc -1 io 0x01/0x00)

Killed by signal 2.

其实我不知道哪些信息是有价值的。我和能成功传输的作了一个对比,似乎差不多。

2. 关于MTU,我这边的设置是这样的。

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host noprefixroute valid_lft forever preferred_lft forever 2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:bf:b8:d3:83:8b brd ff:ff:ff:ff:ff:ff inet 192.168.102.118/24 brd 192.168.102.255 scope global dynamic noprefixroute enp3s0 valid_lft 28745sec preferred_lft 28745sec inet6 fd59:5f39:f24:0:7f99:3ba2:d837:b757/64 scope global temporary dynamic valid_lft 589920sec preferred_lft 71512sec inet6 fd59:5f39:f24:0:dc1a:a4d:2073:41c9/64 scope global temporary deprecated dynamic valid_lft 503532sec preferred_lft 0sec inet6 fd59:5f39:f24:0:ccf:e75d:be8d:6326/64 scope global temporary deprecated dynamic valid_lft 417145sec preferred_lft 0sec inet6 fd59:5f39:f24:0:b9c4:d753:5099:3f4d/64 scope global temporary deprecated dynamic valid_lft 330757sec preferred_lft 0sec inet6 fd59:5f39:f24:0:72b5:a73a:e879:7852/64 scope global temporary deprecated dynamic valid_lft 244370sec preferred_lft 0sec inet6 fd59:5f39:f24:0:83f9:cfa8:47d1:ba9b/64 scope global temporary deprecated dynamic valid_lft 157982sec preferred_lft 0sec inet6 fd59:5f39:f24:0:ae23:ca55:88e3:1873/64 scope global temporary deprecated dynamic valid_lft 71595sec preferred_lft 0sec inet6 fd59:5f39:f24::10e/128 scope global noprefixroute valid_lft forever preferred_lft forever inet6 fd59:5f39:f24:0:abf:b8ff:fed3:838b/64 scope global mngtmpaddr noprefixroute valid_lft forever preferred_lft forever inet6 fe80::abf:b8ff:fed3:838b/64 scope link noprefixroute valid_lft forever preferred_lft forever 3: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default link/ether 02:42:60:53:21:ac brd ff:ff:ff:ff:ff:ff inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0 valid_lft forever preferred_lft forever inet6 fe80::42:60ff:fe53:21ac/64 scope link proto kernel_ll valid_lft forever preferred_lft forever 53: veth1aea394@if52: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP group default link/ether 3e:a7:ea:e1:03:ac brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet6 fe80::3ca7:eaff:fee1:3ac/64 scope link proto kernel_ll valid_lft forever preferred_lft forever


几个连接都是1500.  我调整了一下docker0 和 veth1aea394 (应该是容器的),并没有解决问题,并且有时会导致在更早的时候卡住。

再次感谢。
libra146 commented 1 week ago

https://github.com/libra146/docker-topsap/issues/16 参考一下这个 issue,更改一下 mtu 然后 ping 一下试试看?如果是 mtu 的原因应该会在某一个值导致丢包的

zhaiyusci commented 1 week ago

根据您的建议,我直接抄了那个issue里的解决方案,可以传输大文件了。

感谢。

我个人不是很懂网络。这里我写一些系统信息供后来者参考。

             .;ldkO0000Okdl;.                yuzhai@c209-ccme-pku
         .;d00xl:^''''''^:ok00d;.            OS: openSUSE 20240830
       .d00l'                'o00d.          Kernel: x86_64 Linux 6.10.5-1-default
     .d0K^'  Okxoc;:,.          ^O0d.        Uptime: 20d 13h 10m
    .OVVAK0kOKKKKKKKKKKOxo:,      lKO.       Packages: 3389
   ,0VVAKKKKKKKKKKKKK0P^,,,^dx:    ;00,      Shell: zsh 5.9
  .OVVAKKKKKKKKKKKKKk'.oOPPb.'0k.   cKO.     Resolution: 2560x1440
  :KVAKKKKKKKKKKKKKK: kKx..dd lKd   'OK:     DE: KDE
  lKlKKKKKKKKKOx0KKKd ^0KKKO' kKKc   lKl     WM: KWin
  lKlKKKKKKKKKK;.;oOKx,..^..;kKKK0.  lKl     GTK Theme: Breeze [GTK2/3]
  :KAlKKKKKKKKK0o;...^cdxxOK0O/^^'  .0K:     Icon Theme: breeze
   kKAVKKKKKKKKKKKK0x;,,......,;od  lKP      Disk: 2.4T / 7.6T (32%)
   '0KAVKKKKKKKKKKKKKKKKKK00KKOo^  c00'      CPU: 13th Gen Intel Core i7-13700K @ 24x 5.3GHz [39.0°C]
    'kKAVOxddxkOO00000Okxoc;''   .dKV'       GPU: Mesa Intel(R) Graphics (RPL-S)
      l0Ko.                    .c00l'        RAM: 12795MiB / 64041MiB
       'l0Kk:.              .;xK0l'         
          'lkK0xc;:,,,,:;odO0kl'            
              '^:ldxkkkkxdl:^'