Я обновился с Xenial до Bionic, и теперь scp и sftp больше не работают. SSH работает. Когда я пытаюсь перенести файлы с другого компьютера на компьютер Bionic, я получаю сообщение:

lost connection

Я прилагаю подробный вывод из обеих сессий.

Как я могу снова заставить работать scp и sftp?

Не удалось scp

Mozart:~ neuwirth$ scp -v ulysses.txt neuwirth@vmstat02.csd.univie.ac.at:/home/neuwirth
Executing: program /usr/bin/ssh host vmstat02.csd.univie.ac.at, user neuwirth, command scp -v -t /home/neuwirth
OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /Users/neuwirth/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Connecting to vmstat02.csd.univie.ac.at port 22.
debug1: Connection established.
debug1: identity file /Users/neuwirth/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /Users/neuwirth/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/neuwirth/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/neuwirth/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/neuwirth/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/neuwirth/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/neuwirth/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/neuwirth/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4
debug1: match: OpenSSH_7.6p1 Ubuntu-4 pat OpenSSH* compat 0x04000000
debug1: Authenticating to vmstat02.csd.univie.ac.at:22 as 'neuwirth'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:Ycp4vNiS6/5L+N+MrdP161M5zpEUyME3iPoEZcycVjA
debug1: Host 'vmstat02.csd.univie.ac.at' is known and matches the ECDSA host key.
debug1: Found key in /Users/neuwirth/.ssh/known_hosts:23
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:/7JCnjIqpzc2vh9dxMHju5lYfVQFS4rQ0Y4RkPZ6XP0 /Users/neuwirth/.ssh/id_rsa
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug1: Authentication succeeded (publickey).
Authenticated to vmstat02.csd.univie.ac.at ([131.130.93.37]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Sending environment.
debug1: Sending env LC_CTYPE = UTF-8
debug1: Sending command: scp -v -t /home/neuwirth
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 2736, received 3012 bytes, in 0.4 seconds
Bytes per second: sent 7181.8, received 7906.2
debug1: Exit status 0
lost connection

Сбой sftp

Mozart:~ neuwirth$ sftp -v neuwirth@vmstat02.csd.univie.ac.at
OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /Users/neuwirth/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Connecting to vmstat02.csd.univie.ac.at port 22.
debug1: Connection established.
debug1: identity file /Users/neuwirth/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /Users/neuwirth/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/neuwirth/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/neuwirth/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/neuwirth/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/neuwirth/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/neuwirth/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/neuwirth/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4
debug1: match: OpenSSH_7.6p1 Ubuntu-4 pat OpenSSH* compat 0x04000000
debug1: Authenticating to vmstat02.csd.univie.ac.at:22 as 'neuwirth'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:Ycp4vNiS6/5L+N+MrdP161M5zpEUyME3iPoEZcycVjA
debug1: Host 'vmstat02.csd.univie.ac.at' is known and matches the ECDSA host key.
debug1: Found key in /Users/neuwirth/.ssh/known_hosts:23
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:/7JCnjIqpzc2vh9dxMHju5lYfVQFS4rQ0Y4RkPZ6XP0 /Users/neuwirth/.ssh/id_rsa
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug1: Authentication succeeded (publickey).
Authenticated to vmstat02.csd.univie.ac.at ([131.130.93.37]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Sending environment.
debug1: Sending env LC_CTYPE = UTF-8
debug1: Sending subsystem: sftp
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
Transferred: sent 2720, received 3012 bytes, in 0.4 seconds
Bytes per second: sent 7366.3, received 8157.1
debug1: Exit status 0
Connection closed
sftp scp bionic

0