From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id YBR2FWWGY2c0LQEAe85BDQ:P1 (envelope-from ) for ; Thu, 19 Dec 2024 02:35:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id YBR2FWWGY2c0LQEAe85BDQ (envelope-from ) for ; Thu, 19 Dec 2024 03:35:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=bU22ZYda; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="Era/7qyH"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734575717; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=lHTXZgZbodr2+DiCdy3d8SKnmEujOlEXajMSf0XaIXI=; b=qKfOPEVsWB2MB8IpiTQPGGwrUnUWyxGOjbODuze/YL26c48avxmWcv9QeAHptP66YNvs5Q u5G3kRcn4pVHfzHEtwnd9RrEtSw3LRdkriTSFLzCv8hBtTLxGUfKQb+CjXWnqV0OGINJ21 kJYmbM6XFRBXe0EFa4VROdlO1jWi1FUXjwUD7LiSpmIvuFr7HK0oNeIfmkH7YzcAPaOjHt 53P8fdXOf+C+068HlH63cGm+0UtY9ytBSKJcOUubs/K1QKxh47pJar2+pMDDUjopMWyfB1 uP2IDxj2JnOLcUv8Y2OraQDCbkQW5lfM2pLrTCLtX7VP5h3Q0wi+DQfLCyBTbA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734575717; a=rsa-sha256; cv=none; b=jyFv6QFB7LDsqDAhuVz8XvjuQZROb6PQgwn++oYYb3OpzWOUJwgjnumIox7R1it8SEVWqV 79Dfi6hFZQXDfLcVXeOF9w1UIhmEZ0wvoul3+KaiIUIQa2+5/4eFnK9hX62tzclHMw5VUo iP8nQC3MTy+jr5rboRS+t0RbRYhZ005TwDcOtpItzNOhBD++YSMJC733iu/QJIYzSB7fOd sSuM/Nk9GHdgrY6zU6TV9oB6+O0KIZorTYX4/aEd2gmsn2UFfnt42ulcp3HfdjMyY6xbUq 4IHHd6Qn2VvEzI4vtjY584O9MEQws7BSG8ehauZwU2snd0Od9O7FpqkJTep3MQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=bU22ZYda; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="Era/7qyH"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) 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 1957F83B4E for ; Thu, 19 Dec 2024 03:35:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tO6NW-00007Y-2F; Wed, 18 Dec 2024 21:35:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tO6NT-00004z-J5 for bug-guix@gnu.org; Wed, 18 Dec 2024 21:35:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tO6NT-0006LG-7C for bug-guix@gnu.org; Wed, 18 Dec 2024 21:35:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=lHTXZgZbodr2+DiCdy3d8SKnmEujOlEXajMSf0XaIXI=; b=bU22ZYdaIVOYGR7H8c8P1+uYvwMef/TgZbrR9pKDg45ITwzifYszKmF0OVJAzO58D2jYn0g+OwibiRsNsyCukgH5H5Rn+j1RhLllTrJDnJ1IL8BhyBc+c/GS+qYkqY64PgGIRsd7rFYdoUNdn7mdz97AMPfJgL17+xv+jPzL2yCOTB3UgrigPc0bpNvJxjYzXef3Ushu5sn6YUwSSaNIzDK1FQbixLec1bGcqs6/Pehf8Qr0u2ZRr9fQKkkf4VL6L0dPqJ6Qab5cnEF3ck+TOwxK7E5Taj2FiPgpGHyJV2V+Q/dMMkmqsil+abwnaBH7u2yo92XtjUWG492Bvv/BIQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tO6NS-0000VF-EQ for bug-guix@gnu.org; Wed, 18 Dec 2024 21:35:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74832: guix copy incorrectly assumes port is 22 Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 19 Dec 2024 02:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74832 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: Tomas Volf <~@wolfsden.cz> Cc: Josselin Poiret , Tobias Geerinckx-Rice , Simon Tournier , Mathieu Othacehe , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 74832@debbugs.gnu.org, Christopher Baines Received: via spool by 74832-submit@debbugs.gnu.org id=B74832.17345756701868 (code B ref 74832); Thu, 19 Dec 2024 02:35:02 +0000 Received: (at 74832) by debbugs.gnu.org; 19 Dec 2024 02:34:30 +0000 Received: from localhost ([127.0.0.1]:36795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tO6Mw-0000U4-1U for submit@debbugs.gnu.org; Wed, 18 Dec 2024 21:34:30 -0500 Received: from mail-pl1-f181.google.com ([209.85.214.181]:52690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tO6Mu-0000Tt-BT for 74832@debbugs.gnu.org; Wed, 18 Dec 2024 21:34:29 -0500 Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-21661be2c2dso2584815ad.1 for <74832@debbugs.gnu.org>; Wed, 18 Dec 2024 18:34:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734575607; x=1735180407; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=lHTXZgZbodr2+DiCdy3d8SKnmEujOlEXajMSf0XaIXI=; b=Era/7qyH3JxyogsU3sYQJZHuV0SenIa+b28XmqffHr+TRxIYEpimykRVbAFp5s2fbU 7NMbVcDPojMB90yOvXRtM7JYBPXdTiJWEPGxJ5AwAlIdczwdnqxUrsRVmvT56wtuyIU7 AbzucMC8MOResNEfnnWE8wZ15jW2tobBOvnVsJdevlmhlyqcQ+8PRaI22UiQQTYYYvhk fzShKVwmrt9IwP2+6aNBZXqbW2wigxNJEMEOR2E8YNXjhpf0da4nPFW2TTRxnvivZAuZ drlhRuvf+qZiQqsjcTaVC+7IOC2wKWtBPlofSx9NJFQ/5Y9ALn69NUjJ/ddF3wbJo5mv phEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734575607; x=1735180407; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lHTXZgZbodr2+DiCdy3d8SKnmEujOlEXajMSf0XaIXI=; b=A2OnHb5fB34ynT3VsKliBS2Z1I8j/I1Ao6/Y8kXn+dj7rA4OIw3crQXpE5y5sxipg6 RXcLgr6f4CDxE+TAxx5666f047V55e++mjFf5JbwnMC4TrS27oIvG3Ot0G/7ugq5NJK7 W2R2BmWyaZdwsNSqWQwtX9wmnd3QWKJaCPiOut5rdAFRGqZilV2cDpGn+9TPuwwzswVU qHz7vjRf3FEGZEMyUEp1dQWp2ghoUdsdT7xri6TqZyeJ6/leNGB5WlAxdDoN283VdlxA nYOFajA7El0bTSZSN4ykwHI8k7eC898N3Mk4gCOIuJAPyqgZEq9ImoK4n60oomgoFCnT BrEA== X-Gm-Message-State: AOJu0YxOSd4jUs15ZKn3As32N0qiY6jnnZH235py6Tksr8UqC8eWBUtZ 8MYpGd8Yk6Dlj8Mk4eqMgNBuy19Y80tWDy8idzw8kBf4EU81dbcg X-Gm-Gg: ASbGncv+vj5S1a7Kc6QzBoyiaEYKohkUd0/1AaCyw4SP/qQUlJNXfflJ2nAJZ2dpr/6 t+CgIMXF/zOwHQ+rrV5Unt3napkDPEOFF/sZy4D77XaYocdW+dLvOgFdYCtgXmrdBwfvBVFKZIN qXn8oJjFmTpYLaiY2f5PK27TJsVBx53/1vWa06A+S/tXBIdHev+FvxxoHOqjbYHmjVAhmtJmfBe A0XMEKiGuAJwYkmHBrjRcR5hAORXApinxrfjtlt7YYhg5qXcR4uHA== X-Google-Smtp-Source: AGHT+IF/ColIvvUrG5jKabYA40UZmqMsYjX69Bvh+FTdBJECxm5jGhYDECgRMh2MKhGi/PkOTKtalQ== X-Received: by 2002:a17:902:e54f:b0:216:59d4:40e7 with SMTP id d9443c01a7336-219d96ab567mr23585465ad.55.1734575607617; Wed, 18 Dec 2024 18:33:27 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc9d945csm2180295ad.117.2024.12.18.18.33.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2024 18:33:27 -0800 (PST) From: Maxim Cournoyer In-Reply-To: (Tomas Volf's message of "Thu, 12 Dec 2024 20:31:04 +0100") References: Date: Thu, 19 Dec 2024 11:33:17 +0900 Message-ID: <87ikrgmmfm.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -3.38 X-Spam-Score: -3.38 X-Migadu-Queue-Id: 1957F83B4E X-TUID: sS7qEU/WyKHv Hi Tomas, Tomas Volf <~@wolfsden.cz> writes: > After update to guile-ssh 0.18.0, options passed to the `make-session' > procedure now take precedence over the configuration file. In few places we > however had code like `(or port 22)' leading to (in absence of alternative > port being specified) always using port 22, ignoring the configuration file. > > Due to that for example following command fails: > > guix copy hello --to=name > > Name is reachable, but ssh server listens on port 2222. That is correctly > configured in ~/.ssh/config, and the invocation used to succeed until the > upgrade. That is curious, because I had reported the exact same problem 6 years ago (!) in bug#33266 (now merged with this one), with a similar solution: --8<---------------cut here---------------start------------->8--- Subject: [PATCH] Revert "copy: Default to port 22." This reverts commit cc1dfc202f2fefb6c2eb9467d1fc90a9154550c9. Specifying a default port had the undesirable effect of disregarding a port specification for a given host in the ~/.ssh/config that would otherwise have been honored at the time `open-ssh-session' calls the `session-parse-config!' method. In any case, `make-session' will default the port value of the created session to 22 if left unspecified. --8<---------------cut here---------------end--------------->8--- But, Ludovic had mentioned that without it, --8<---------------cut here---------------start------------->8--- [...] "%p" would be "0" when using "ProxyCommand" in ~/.ssh/config. --8<---------------cut here---------------end--------------->8--- So it'd perhaps regress in another way; I want to retry the test I had done then but I need to setup at least a VM with SSH to test. If you can beat me to that, all the better :-). -- Thanks, Maxim