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 YHliGZQkR2OwwwAAbAwnHQ (envelope-from ) for ; Wed, 12 Oct 2022 22:33:24 +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 oNlsGZQkR2OabAEA9RJhRA (envelope-from ) for ; Wed, 12 Oct 2022 22:33:24 +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 3EFCF3DB4E for ; Wed, 12 Oct 2022 22:33:24 +0200 (CEST) Received: from localhost ([::1]:51992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiiPr-000284-EY for larch@yhetil.org; Wed, 12 Oct 2022 16:33:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiiFJ-0004wa-B0 for help-guix@gnu.org; Wed, 12 Oct 2022 16:22:29 -0400 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:37685) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiiFF-0002kw-5i for help-guix@gnu.org; Wed, 12 Oct 2022 16:22:26 -0400 Received: by mail-ed1-x532.google.com with SMTP id m16so2922976edc.4 for ; Wed, 12 Oct 2022 13:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=lXRVQEN4CxwdA9AU0CDRiP5Vi3/7nVH6s+p9DgvZAzc=; b=fskBeqXGZyCmzgLatVTyaMtTEmExOFoaPRTXOopf8f175ifkjDJxtr+vq72rb6zwYy XufGvAVgq1PdYMKZKTnh16Yiq4MbNg1dyXOEKqwVVq0O6U3HfkkE+TPB6Shj48m7Rpi7 loExQ0I+/4XSq7l+/Vf0HDNlWWksu/uySNtoghAaaxbP5IL57kkk1Ux4Gv1itUDF7wbQ 7v3JWUog7g4PpTIGwCB6ojz/vtfxnF/m9OMQGTfll8PgN8h7CD4rKEwdyR7UANY7uq8v JT4T+sOuE64X8CMsMqgxvqath8sbfu9XGtn3+E8+nLWQbl47W/wB8s6JjN43hoCa/Jh2 tl8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=lXRVQEN4CxwdA9AU0CDRiP5Vi3/7nVH6s+p9DgvZAzc=; b=EOmA/N12S499VRpzByPGkGeqO1YFbmM7x+2vrSfkYO2FhkNz9gPyPWTAVjlg9QDAH0 MJHrPXdAv4RXwIXHHd9zjqUcNPXq7AgNI+yIa4K7QM4Ib8jeZSxd8tevxOhbSvruBG6Y iWYjq3OJCAW66uACB1tC6ukJFI39oGQ05PSmC4wU8YYZqx01aUGG9iQTmEXI4GfbkuKO tPKc/rlZjHndDxBYiSTMRX6hvdOR8V2bJOx/ZNVRxAkXrxFjx3WqxoRDA79Q2oflcAcP JzlxoJ0/ARPF2AmtNTlGGZ0E7RSHcnO9dW4dQZkEMrDe8QEAYeoZUzwBG0Jh41q+fgrf N2zw== X-Gm-Message-State: ACrzQf2x8C9ci69bQKKYeWE719NIzsS1x6yo+S1swB6/6DXqZLnzC/Hl S77aXNcF+qzV2e/kRDAQQXDcAHnPc7tHZx9amrbbzMUk14Q= X-Google-Smtp-Source: AMsMyM5SaNNXc6Q0e8UelGK27RDvNI5OS97SxlKaFx8NI8lMkHfBMtQDZSAf5iWSqS09ykG8wqmXTBUJnRcCIvps5Qs= X-Received: by 2002:a05:6402:1941:b0:457:13a:cce9 with SMTP id f1-20020a056402194100b00457013acce9mr29619846edz.265.1665606142775; Wed, 12 Oct 2022 13:22:22 -0700 (PDT) MIME-Version: 1.0 From: "dabbede@gmail.com" Date: Wed, 12 Oct 2022 22:22:11 +0200 Message-ID: Subject: Connection refused to Guix-hosted SSH To: help-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=dabbede@gmail.com; helo=mail-ed1-x532.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-Mailman-Approved-At: Wed, 12 Oct 2022 16:33:10 -0400 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=1665606804; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lXRVQEN4CxwdA9AU0CDRiP5Vi3/7nVH6s+p9DgvZAzc=; b=b9/+LRoXIOdfXz/IrE3FaTsAfR3Zt2WGm5mHPRjIUwLEoYy5yN55QRBkl1F/sTOOYU01xf MVBpekvx7w02sLeHsTBPqmLMmjJAu4eP+RtCenZSEPnn+tIXTLaIB2FkM3t9tG8KjRrwYO RzKanoFui4sBpsuhidJDgjxzCBDmGE6pvtoMl4YzpcLdK/artihigXudPAdMIG+WKXqlZ4 eMyIIJXt5YOZaYFRLsxw6Bk5yBy2eJr42mAyXHOub0tUP0qxMeTcLZMuFY1CORpfcdF173 1+UFUgA0yhFcWdEsadDZXX6ajCw9IxYRO2YcnGk7yQWg8mlKUEp9R/LC0bXVhQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665606804; a=rsa-sha256; cv=none; b=QfTkdAnJlx6UyRPvJ/rp0KDbX1TWDOgPMZ1akhl9CYgyko7KVu39ISxWsphJxvHF+eUzH7 Au3dVe1jHqX4k7MQv4Fw6D9UjGzvKj2AaTBbz/z3xhFnG2zNwyixnaZvOpdWDgyTKV3aDW ci8WSju5RZG0dFBAf4ED7JfHkO+R6umCN5BzTjOKW06+kYvI5LhRzSTiTxI9tNRvEEsY0r 7RoAmr17SpIA6yvvBFQ37/Y495f85AaFeXH7rj85VPapvVclX8Fbd4rJbUNyGjAMorlMN/ YAY+w9iwhFzYKVyCdxOhMuGMGcGZB3vRq//JFWB9XBZ00Jj01qaAFGtAiOUV3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fskBeqXG; 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: -1.40 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fskBeqXG; 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: 3EFCF3DB4E X-Spam-Score: -1.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: sgWsdQWT0p/J Dear all, I'm starting with Guix and I'm still learning. I've set up a simple system with no gui, and now I would like to configure OpenSSH daemon to accept incoming connections for my two users ("root" and "pcp"). Here is my config.scm file. Both "root.pub" and "pcp.pub" are existing in /etc when I run guix system reconfigure. (use-modules (gnu)) (use-modules (gnu packages linux)) (use-service-modules desktop networking ssh xorg) (operating-system (kernel linux-libre) (locale "en_US.utf8") (timezone "Europe/Rome") (keyboard-layout (keyboard-layout "it")) (host-name "PCP3600") (users (cons* (user-account (name "pcp") (comment "Pcp Developer") (group "users") (home-directory "/home/pcp") (supplementary-groups '("wheel" "netdev" "audio" "video"))) %base-user-accounts)) (services (append (list (service static-networking-service-type (list (static-networking (addresses (list (network-address (device "eno1") (value "10.168.214.102/24"))))))) (service openssh-service-type (openssh-configuration (permit-root-login #t) (password-authentication? #t) (public-key-authentication? #t) (authorized-keys `(("root" ,(local-file "root.pub")) ("pcp" ,(local-file "pcp.pub"))))))) %base-services)) (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda") (keyboard-layout keyboard-layout))) (swap-devices (list (uuid "7137662a-60fa-4f0e-b820-916e644d6e84"))) (file-systems (cons* (file-system (mount-point "/") (device (uuid "4fc3b29d-3ef4-4c79-ba8c-8a86fb5fc06c" 'ext4)) (type "ext4")) %base-file-systems))) >From another machine I can correctly ping this system at the static address, but I can't login with private credentials. Actually, I can't connect even with password, because every time my client ends with "Network error: Software caused connection abort". Within guix, if I run "ssh pcp@localhost" I receive a "Connection reset by 127.0.0.1 port 22" (I don't know if it is supposed to work on localhost). I've also tried to manaully add the pub keys in ".ssh/authorized_keys" for both users, with no luck. What am I missing?! Thank you for your help