From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WCayJNEzs2BkxQAAgWs5BA (envelope-from ) for ; Sun, 30 May 2021 08:42:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kMwUINEzs2BZYQAAbx9fmQ (envelope-from ) for ; Sun, 30 May 2021 06:42:25 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E84EC22B82 for ; Sun, 30 May 2021 08:42:24 +0200 (CEST) Received: from localhost ([::1]:41078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnF9S-0002mL-LV for larch@yhetil.org; Sun, 30 May 2021 02:42:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnF5G-0004Y1-D6 for bug-guix@gnu.org; Sun, 30 May 2021 02:38:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnF5G-0003Zg-1f for bug-guix@gnu.org; Sun, 30 May 2021 02:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnF5F-0003rp-U8 for bug-guix@gnu.org; Sun, 30 May 2021 02:38:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48739: QEMU SSH hostfwd example from manual doesn't work anymore Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 30 May 2021 06:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48739 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48739@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.162235662714792 (code B ref -1); Sun, 30 May 2021 06:38:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 May 2021 06:37:07 +0000 Received: from localhost ([127.0.0.1]:58300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnF4N-0003qU-6w for submit@debbugs.gnu.org; Sun, 30 May 2021 02:37:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:46322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnF4L-0003qL-KF for submit@debbugs.gnu.org; Sun, 30 May 2021 02:37:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnF4L-0003ri-CS for bug-guix@gnu.org; Sun, 30 May 2021 02:37:05 -0400 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]:33501) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnF4J-0002wg-NX for bug-guix@gnu.org; Sun, 30 May 2021 02:37:05 -0400 Received: by mail-qv1-xf32.google.com with SMTP id 5so4098541qvk.0 for ; Sat, 29 May 2021 23:37:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=iAntxZBE1VjtJkaU32rVC/O/ep0XacfBa9v8tv/jgRw=; b=c1ptzDabDguNGIuf+aQEIfrTHZKn1B0MrhKSoGDRvf7U3vPbpNYvUnAPN+k/2JtMGU 9gXx2C0DfYdw7RZc+N37IBsgl4OHL55QYjkl4eX9TdSa0/JiUopU++jafroZSZW60Z15 qphVmvRDyyxIqHsGe18bb6Y5fJlsJGyXy8xEukY8FcVFt/sXIdCVO636l5U50xVgiYfs som62fDvZJqDNr7keM1UnySC5PhBPRWFGRNcfxsNj99dS2oDpZFeM4TulVXgIYVhWAKH gN+/sNwbemt4mgUKxq+5jCdjIc2S3Z1uYOXTsYymAUw4TFMgCoXsqpsMuZ11wmI11TT9 hqVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=iAntxZBE1VjtJkaU32rVC/O/ep0XacfBa9v8tv/jgRw=; b=gWVw8rG9XCGIYTYgP+AFPD0ISZecbABuTROzMwyQ6mnQLq6Ic9UtrnICwFWkEZFLOm 6gSi04jQVtQBFbQl3GAHNzJCz/Od1S3okwTRXB80zADMLx3hsk55f1K/SUFlO2iodP6h 8jP8O7ZaERmbUm5i+UxZ9dtFw3wdibJ5JxsHa//5jNf9sXjT2UAeDIHhs4rBtTFH2Scw Ezz4yZSN42Cyt5sFoH4Ga0JmvVSMnF46p3G3agdUZz9N0JCXTvHRIDiQkAywA1Cm6wlt ZaGEVUMyiW/Ua4BLZ9LbCwJ8zSukhNvfKej9NaLAxNPT5Ju3x8xS4zy74k2f2wK+a48T iI9A== X-Gm-Message-State: AOAM530OtcnLmusZRTEZbSozi0EieqvBEYx1n1Y/aMhxCzqom4C+8JEM rruTE+RFu1U8SBWLIgYlDwvxAsZJW+A= X-Google-Smtp-Source: ABdhPJyg8zOv869gkRH4AqYmJHE3VwQRlIna1KLpmjIiDhmdEG0DxyLZNVWeXtUB6zkbDjN+NjbXng== X-Received: by 2002:ad4:4c45:: with SMTP id cs5mr11220044qvb.6.1622356621544; Sat, 29 May 2021 23:37:01 -0700 (PDT) Received: from hurd (dsl-10-146-248.b2b2c.ca. [72.10.146.248]) by smtp.gmail.com with ESMTPSA id a68sm6821185qkd.51.2021.05.29.23.36.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 May 2021 23:36:59 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 30 May 2021 02:36:56 -0400 Message-ID: <87zgwchgmv.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f32; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf32.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622356945; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=iAntxZBE1VjtJkaU32rVC/O/ep0XacfBa9v8tv/jgRw=; b=HJptLaaRp0JWb2vN3mbwFKlStWR/PKoE5fCcRvUepuXCd0mMiokrkwspQe3VaJXsgt4z6u rWuXCjQhGHLu8FRrN/h8UUFpzT7fMuJ6GOPiWOwVXWjpEB05FwvfYx1tXe4d0iLKAZJwOv Q0rY0HUHxuMqLh+Mf5W0puJlpWJoAtSpDE4tTYmfHxBVaKl7nZz6dMMP0Q/0ghWtHDA58g YpBwCIWC7fLpsP53yywzv6GOflLFE/MayEl0vqLMQ6yY0smU3hoMaiWABR4qpNolW+NlMJ q5/MMhUje3P1tSio+5NsZo8fVB9GJ5oiiqC1Q02j6JKA0ufBe5y+wUgPrML6iQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622356945; a=rsa-sha256; cv=none; b=BPmF9EU3A3BbjieoO77LRKCEyvPg9vNYZo3LDwzr0Cj9yE2++4fSYUbvtqUy7zHDGbR1dm vsoQ3JnXptYUjp0dy9i0LYaDyzqeeiEi7rIxnxMhE/mXUw136Rcvs04PFGHgjBK3Q0z3z+ v5+qFPznEofHaA/4PoyRS6WsJRZWPG2ncZSwxzInVY11CiOJDa225dpOXvhzQCQPuBl8hz FxsE0tyW9IomM7XZt4Pe2BnXocn0xYOSA9u5dz/p7Wk7St3Q+uoJIGn5Sfo1cOur9lzm+y bwKwsbom+bBGDbR4H6fV/5ePyoOCxVwMOeqbKQpC+wf7YFA4wRmcV3x/j1pfvw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=c1ptzDab; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=c1ptzDab; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: E84EC22B82 X-Spam-Score: -1.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: IXhnkU9FLaAZ Hi! In the manual, we have an example to allow connecting to the VM via a port forward from the host: $(guix system vm config.scm) -nic user,model=virtio-net-pci,hostfwd=tcp::10022-:22 Unfortunately, I cannot get this to work anymore, using a very simple operating system with following openssh-configuration: --8<---------------cut here---------------start------------->8--- (service openssh-service-type (openssh-configuration (permit-root-login #t) (allow-empty-passwords? #t) (log-level 'debug))) --8<---------------cut here---------------end--------------->8--- I've used port 3333 as the childhurd VM is already using 10022 by default, like so: $ /gnu/store/qgaihb9i6n8m96m6prrcgywwxfjyqy99-run-vm.sh -nic user,hostfwd=tcp::3333-:22 And tried connecting with: --8<---------------cut here---------------start------------->8--- $ ssh -vvvvvv root@localhost -p3333 OpenSSH_8.6p1, OpenSSL 1.1.1j 16 Feb 2021 debug1: Reading configuration data /home/maxim/.ssh/config debug2: checking match for 'localuser mcournoyer' host localhost originally localhost debug3: /home/maxim/.ssh/config line 13: not matched 'localuser "maxim"' debug2: match not found debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/maxim/.ssh/known_hosts' debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/maxim/.ssh/known_hosts2' debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling debug2: resolving "localhost" port 3333 debug3: ssh_connect_direct: entering debug1: Connecting to localhost [127.0.0.1] port 3333. debug3: set_sock_tos: set socket 3 IP_TOS 0x48 debug1: Connection established. debug1: identity file /home/maxim/.ssh/id_rsa type 0 debug1: identity file /home/maxim/.ssh/id_rsa-cert type -1 debug1: identity file /home/maxim/.ssh/id_dsa type -1 debug1: identity file /home/maxim/.ssh/id_dsa-cert type -1 debug1: identity file /home/maxim/.ssh/id_ecdsa type -1 debug1: identity file /home/maxim/.ssh/id_ecdsa-cert type -1 debug1: identity file /home/maxim/.ssh/id_ecdsa_sk type -1 debug1: identity file /home/maxim/.ssh/id_ecdsa_sk-cert type -1 debug1: identity file /home/maxim/.ssh/id_ed25519 type -1 debug1: identity file /home/maxim/.ssh/id_ed25519-cert type -1 debug1: identity file /home/maxim/.ssh/id_ed25519_sk type -1 debug1: identity file /home/maxim/.ssh/id_ed25519_sk-cert type -1 debug1: identity file /home/maxim/.ssh/id_xmss type -1 debug1: identity file /home/maxim/.ssh/id_xmss-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_8.6 --8<---------------cut here---------------end--------------->8--- Inside the guest, /var/log/secure doesn't show any activity so it doesn't seem to be reached. Am I doing something wrong? Maxim