id = 1067 title = "SSH QEMU ISSUE by using with MacOs" state = "opened" created_at = "2022-06-07T10:12:37.954Z" closed_at = "n/a" labels = ["Networking", "accel: HVF", "target: i386"] url = "https://gitlab.com/qemu-project/qemu/-/issues/1067" host-os = "MacOS" host-arch = "x86" qemu-version = "7.0.0" guest-os = "Ubuntu Live Server 20.4" guest-arch = "x86" description = """ssh connection between Qemu Image and Guest Host (MacOS) broken down after few minutes""" reproduce = """1. Take the Qemu window and external ssh connection to backround, \\ wait until few minutes and the connection are frozen. \\ If we clicking to qemu window again, the ssh connection are available""" additional = """The ssh connection settings by Macos: \\ Host * \\ AddKeysToAgent yes \\ IdentityFile ~/.ssh/id_rsa \\ IdentitiesOnly yes \\ ServerAliveInterval 3600 \\ TCPKeepAlive yes \\ ServerAliveCountMax 2 \\ \\ \\ SSH connection settings by Ubuntu Server: Include /etc/ssh/sshd_config.d/*.conf \\ \\ #Port 22 \\ #AddressFamily any \\ #ListenAddress 0.0.0.0 \\ #ListenAddress :: \\ #HostKey /etc/ssh/ssh_host_rsa_key \\ #HostKey /etc/ssh/ssh_host_ecdsa_key \\ #HostKey /etc/ssh/ssh_host_ed25519_key \\ #RekeyLimit default none \\ #SyslogFacility AUTH \\ #LogLevel INFO \\ #LoginGraceTime 2m \\ #PermitRootLogin prohibit-password \\ #StrictModes yes \\ #MaxAuthTries 6 \\ #MaxSessions 10 \\ #PubkeyAuthentication yes \\ #Expect .ssh/authorized_keys2 to be disregarded by default in future. \\ #AuthorizedKeysFile\t.ssh/authorized_keys .ssh/authorized_keys2 \\ #AuthorizedPrincipalsFile none \\ #AuthorizedKeysCommand none \\ #AuthorizedKeysCommandUser nobody \\ #HostbasedAuthentication no \\ #IgnoreUserKnownHosts no \\ #IgnoreRhosts yes \\ #PasswordAuthentication yes \\ #PermitEmptyPasswords no \\ ChallengeResponseAuthentication no \\ #KerberosAuthentication no \\ #KerberosOrLocalPasswd yes \\ #KerberosTicketCleanup yes \\ #KerberosGetAFSToken no \\ #GSSAPIAuthentication no \\ #GSSAPICleanupCredentials yes \\ #GSSAPIStrictAcceptorCheck yes \\ #GSSAPIKeyExchange no \\ UsePAM yes \\ #AllowAgentForwarding yes \\ #AllowTcpForwarding yes \\ #GatewayPorts no \\ X11Forwarding yes \\ #X11DisplayOffset 10 \\ #X11UseLocalhost yes \\ #PermitTTY yes \\ PrintMotd no \\ #PrintLastLog yes \\ #TCPKeepAlive yes \\ #PermitUserEnvironment no \\ #Compression delayed \\ #ClientAliveInterval 0 \\ #ClientAliveCountMax 3 \\ #UseDNS no \\ #PidFile /var/run/sshd.pid \\ #MaxStartups 10:30:100 \\ #PermitTunnel no \\ #ChrootDirectory none \\ #VersionAddendum none \\ #Banner none \\ AcceptEnv LANG LC_* \\ PasswordAuthentication yes \\ ClientAliveInterval 600 \\ TCPKeepAlive yes \\ ClientAliveCountMax 10 \\"""