Après la mise à jour vers Mojave 10.14.1, toutes les connexions ssh échouent: terminal ssh, scp, git, etc., toutes obtiennent un "tuyau cassé":
ssh myserver -v
OpenSSH_7.8p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/pablo/.ssh/config
debug1: /Users/pablo/.ssh/config line 137: Applying options for myserver
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Connecting to myserver port 22.
debug1: Connection established.
debug1: identity file /Users/pablo/.ssh/myserver.pem type -1
debug1: identity file /Users/pablo/.ssh/myserver.pem-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.8
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.1
debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.1 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002
debug1: Authenticating to myserver:22 as 'ubuntu'
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: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server Host key: ecdsa-sha2-nistp256 SHA256:8/V/EyMKSlHjnDpF5v/ume45376635342324
debug1: Host 'myserver' is known and matches the ECDSA Host key.
debug1: Found key in /Users/pablo/.ssh/known_hosts:62
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
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/pablo/.ssh/myserver.pem
debug1: Authentication succeeded (publickey).
Authenticated to myserver ([xx.xx.xx.xx]:22).
debug1: channel 0: new [client-session]
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = es_ES.UTF-8
packet_write_wait: Connection to 18.203.95.67 port 22: Broken pipe
après quelques recherches, j'ai constaté que l'ajout de cette configuration à mon fichier de configuration ssh le rend efficace:
Host *
IPQoS lowdelay throughput
J'ai eu le même problème avec vous.
J'ai réussi à résoudre le problème à court terme en ajoutant l'option suivante.-o ProxyCommand='nc %h %p'