From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iPFWKmnASWNecQEAbAwnHQ (envelope-from ) for ; Fri, 14 Oct 2022 22:02:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iN5uKmnASWN3xgAA9RJhRA (envelope-from ) for ; Fri, 14 Oct 2022 22:02:49 +0200 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 7092F36183 for ; Fri, 14 Oct 2022 22:02:49 +0200 (CEST) Received: from localhost ([::1]:57718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojQtM-0002Db-6h for larch@yhetil.org; Fri, 14 Oct 2022 16:02:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojQsm-0001zz-ID for help-guix@gnu.org; Fri, 14 Oct 2022 16:02:12 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:33364) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojQsk-0003Nb-Lm for help-guix@gnu.org; Fri, 14 Oct 2022 16:02:12 -0400 Received: by mail-ed1-x534.google.com with SMTP id a13so8333269edj.0 for ; Fri, 14 Oct 2022 13:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TPYUwfnSmblOf6D8JU3Oc/P2Ei1c+E6WxPaUJ0UsFkk=; b=ibSCK+sPmOvStfCPvEMsKz/cHGDAnTvHbXLFSw/oojjq43ZY5PXtgD9HrMO5TzLBQA qhtg/McobXpb2VULeRw1qGy2lYM7PHwKDbAexMcuXF5nrdf5TWp9kXiTyMpS9nrVmH1P SWUqK8EzJsu7lHM1jrkYzAKJ2/tOUiom/3S7S5ExoPokBFIB0PaRMRQnF50E5qA1qJrO c1f0yoaTkV8XqUFzmUXp4pP6HSLhsexPue3ffYuEq/13i8Ncwq9iYaUs+hjreRZJJzaq Sva+7Ob5OKwAD2QD5jEhtN20jQ/WQst/0Y90SOh9P4JkHdUGx5shFzvgnlyoTFGgMyax P9Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TPYUwfnSmblOf6D8JU3Oc/P2Ei1c+E6WxPaUJ0UsFkk=; b=yu0Pg7rUEPYy0UytikQuToZ0D8ZuSOvcOoN089WocL6hdEp8fH4igRyAlip1fPEYjs 9QMYpJIWkurXv6nt3vffZghwCV8XunYWD9HfKBglg6Orlan01zrfmVaAiLftasINmyc6 WirzKJG3SoE8VtwOz97Sq8yOaZ3zB6Qo7/z+14t/JNGmh3b+bqz2KFJDyI23BVLMoM04 aKpJCTpik247uC3LLxj1rEGsJNHF1N8LvkDCpIKRrYc9T4P/Xmt8z4jNqYZ9NhjKxFlg tbvGy87ih4qFxUNhr7wr6okmaDEEBmh770SpKuwTrTMEI936I5NUFjj6w6uNgE7EZNXZ r1Dw== X-Gm-Message-State: ACrzQf25Hqm3+nFqJE6YPrrhT6B1HRxbJ8FRZ4vnF/Rp6UUh8pdn4t10 tKN904IX1SGBGeFCNRVUqokU2BkZyaqKgTEu9CCPHO1q3oM= X-Google-Smtp-Source: AMsMyM58b7IVtRjgmDPUnY2EGqrF45Z/Sq0yS3fd4WakxikxI4BFHYTodVdEQswG2KvSc7vasgjMwDw01xX30JnfJPg= X-Received: by 2002:a05:6402:2402:b0:45c:a1ce:94d8 with SMTP id t2-20020a056402240200b0045ca1ce94d8mr5531932eda.50.1665777728685; Fri, 14 Oct 2022 13:02:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "dabbede@gmail.com" Date: Fri, 14 Oct 2022 22:01:57 +0200 Message-ID: Subject: Re: Connection refused to Guix-hosted SSH To: Felix Lechner Cc: help-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=dabbede@gmail.com; helo=mail-ed1-x534.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: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665777769; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=TPYUwfnSmblOf6D8JU3Oc/P2Ei1c+E6WxPaUJ0UsFkk=; b=PP68NpbZATc3fry/vOxc1vaYAh18/+NB8/mrOfbtg4ZZE5wPpzETR4ZncJGSqfWpPkZ+Hz cCnskiC2gcq9KQkFYQFSYYIA+P8qVyny/LiDoJBKmAfjHWDy3DCLcKNNAk+wnQddJ+Y75V iZB3Jfu1muHC6Pb/MOT3Yurr417c+OzrezdHf8EmHfNUl84gy+f6wm7t88Mh7HC4rH6k29 hOJe9d++QhbXi8yaqtvlK9uYNkML54G9prE059jFhJFj2SrZF8mTFYjIC74BaRDhVfOmz2 luAiFEfG/uSlIFG7OACR/FHZUenQ6fR0G/E7AXhysLVBeBXzcRdmy4wk/2Sxgg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665777769; a=rsa-sha256; cv=none; b=ljhTb9K8kpcq14Gj1PWale3/5XvPaW3ujsZjk6F+Kawojt3S0Aac1eVmFUbwzdbaz4WQOU JBw/p7wcVZ+jLmXfIzvlxJrnb2026+BBc3pf7v60iIMbRO9S9Ex4HEAgzwSpOe2aNaM2qF HGQwZNrlHxyZ+3ArDCiVnTaeLXR5V4BJlwG1pjt1nesSVgOtcP4ggwS2hlZ97tFTEXb2tD 1N0SnsHHRoUAzQNfwif2vZB3o2XezhTgBnSUN8L1BnvQ62HHpWuDdPOrjISR9eeTuwQRFe ctYBG3XWqnEkOVfqJoW5vbQK06kI5GUx7gMXujagljjZhtjKP+MFNb33qBs1nw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ibSCK+sP; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.69 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ibSCK+sP; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7092F36183 X-Spam-Score: -2.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: pyE3Em5Hqo+3 On Fri, Oct 14, 2022 at 7:06 PM Felix Lechner wrote: > > Hi, > > On Fri, Oct 14, 2022 at 1:54 AM dabbede@gmail.com wrote: > > > > Finally, I also tried to manually start sshd on port 2222 > > I think that is a fabulous idea, especially if you can prevent > daemonization with -d (or -D). > > > this is the output /etc/ssh/sshd_config: No such file or directory > > The sshd_config is in /gnu/store. It is generated by 'guix system > reconfigure'. You can see all available versions with > > ls -ld /gnu/store/*sshd-config > > In a bind, I would pick one that should work and pass it via -f. I just have 3 versions in /gnu/store/, all of them very similar one another. I just picked up the first one and tried running sshd -d -p 2222 -f /gnu/store/....path_to_sshd_config The server starts up waiting for connections. Then, on another tty (and another user), I try to connect to port 2222 in localhost: client side receives "Connection reset by 127.0.0.1 port 2222", while the server side reports this: debug1: sshd version OpenSSH_8.9, OpenSSL 1.1.1q 5 Jul 2022 debug1: private host key #0: ssh-rsa SHA256:stg5akPHR8JGdXPXmqUYJhhZFj1UmEmWx19el4EiHGM debug1: private host key #1: ecdsa-sha2-nistp256 SHA256:zfyEMyjDdSOHX3e9byADPp5sm7Pu6zdq2jnQSWbDo+4 debug1: private host key #2: ssh-ed25519 SHA256:tBpk8+XR3GalUmNqIxT6ITf5Tyy8WKVSxBULZjAmQqI debug1: rexec_argv[0]='/gnu/store/jgw64z5w2q6b4nph7a74jc97ihfxkfsf-openssh-8.9p1/sbin/sshd' debug1: rexec_argv[1]='-d' debug1: rexec_argv[2]='-f' debug1: rexec_argv[3]='/gnu/store/h5hri15x24vljfahpwv1b4dva69nbis3-sshd_config' debug1: rexec_argv[4]='-p' debug1: rexec_argv[5]='2222' debug1: Set /proc/self/oom_score_adj from 0 to -1000 debug1: Bind to port 2222 on 0.0.0.0. Server listening on 0.0.0.0 port 2222. debug1: Bind to port 2222 on ::. Server listening on :: port 2222. debug1: Server will not fork when running in debugging mode. debug1: rexec start in 5 out 5 newsock 5 pipe -1 sock 8 debug1: sshd version OpenSSH_8.9, OpenSSL 1.1.1q 5 Jul 2022 debug1: private host key #0: ssh-rsa SHA256:stg5akPHR8JGdXPXmqUYJhhZFj1UmEmWx19el4EiHGM debug1: private host key #1: ecdsa-sha2-nistp256 SHA256:zfyEMyjDdSOHX3e9byADPp5sm7Pu6zdq2jnQSWbDo+4 debug1: private host key #2: ssh-ed25519 SHA256:tBpk8+XR3GalUmNqIxT6ITf5Tyy8WKVSxBULZjAmQqI debug1: inetd sockets after dupping: 3, 3 Connection from 127.0.0.1 port 33818 on 127.0.0.1 port 2222 rdomain "" debug1: Local version string SSH-2.0-OpenSSH_8.9 debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9 debug1: compat_banner: match: OpenSSH_8.9 pat OpenSSH* compat 0x04000000 debug1: permanently_set_uid: 989/983 [preauth] debug1: list_hostkey_types: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 [preauth] debug1: SSH2_MSG_KEXINIT sent [preauth] debug1: monitor_read_log: child log fd closed debug1: do_cleanup debug1: Killing privsep child 366 I'm puzzled, as I don't understand exactly what went wrong... > To find the version that is actually used by your current system > generation and corresponds to your latest config.scm would require > some sleuthing. You may have to examine the symbolic links in the > system profile and, possibly, in /gnu/store. You may be able to get > better advice about that in #guix on IRC. > > Either way, please do not make any manual changes to /gnu/store, > however tempting it may appear. > > Kind regards > Felix Lechner Thanks again, regards