From owner-freebsd-questions@freebsd.org Sat Sep 14 09:21:02 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3BF85EE5D9 for ; Sat, 14 Sep 2019 09:21:02 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Vn711qHGz3FkY for ; Sat, 14 Sep 2019 09:21:01 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-io1-xd2c.google.com with SMTP id r26so67860768ioh.8 for ; Sat, 14 Sep 2019 02:21:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kepNyYUGwbb9nYlEOxAHIO89l4vvYtzF3HpMWdFEsYw=; b=ULuxSGmw2WUCjoWIpctEWM7M5jWsL5hio1CpZ/ZttnFSpNfipuQ0hCixqnJcrZ+3Eq qbuO5fYFlmJwnQTIZWoevsvIQAPqSp03bGsHtciuBLi/bA/ssGvEXyhg53gw/3Orgpw0 YDKA1Bx8/EhYYAHqncrTQf/cvfl4URLkW1nJ+N3zQ5SgxLnEiu4fPfpad2iXi5kuXkhj eRPhyR/811/FCA0SBjsKMjtFOktxIN4QKvii8THzwYoKBLBkeQrT7ULte+RcvUxJzOkw Q2GJuCUOSru3P9L8ggTWTksRdP6Rkl8LOal2ACk96YsZoau7dcJ0z957n6QsyCsLlipJ pmjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kepNyYUGwbb9nYlEOxAHIO89l4vvYtzF3HpMWdFEsYw=; b=F5NBlvXMVdhj54YDTDST+0cI0O5tiueDVnTAXOk/QMl3+1IiEhuClwrLZIK3/BZk0h Zh3Ya0vk0Xct+i1EI4ZrVZIRXKhHIMDad1fhLPk4GW1Bk03P0lP79T+3gjATJrT1Hxn2 G5e8fnGP1BwKxE1pJOEYSuS2GVbtIbnXi4BA9EkssGsHCCH0AuyYsN6XD5/0J7f5nUGL SBxljoTYSOaoL2INX4tPyuiy8DwtWy6fbtftfZYkuL4QqhamWak75drIbTJAd7vEpyXj aXt5deh0XXEr3xAt+b4gPHgtXNoKyAnoFvsYdDx8kbqFO4RXd5TutE//EKOADPr5QK9T b2rA== X-Gm-Message-State: APjAAAXlj1XVJQVtJLm+G9PrZw68Q4tYsmPVJIYK23cMrI/M6WKXaKA/ 3H+w+KSvfZPh8dZePlJcIFfxyofqEX0KOlq2SHSzkR2u X-Google-Smtp-Source: APXvYqx1ix701+7x8nOXTR+4sS0/NwlP7ivRWv4bpMaiQ8+m2BA+ZNfc6a0DjGRxyJj4mqJQ5ehCMrs7uG5qrtncogM= X-Received: by 2002:a5d:8b47:: with SMTP id c7mr4984918iot.42.1568452860007; Sat, 14 Sep 2019 02:21:00 -0700 (PDT) MIME-Version: 1.0 References: <20190914.165833.837204595421008532.yasu@utahime.org> <20190914.180149.507595364120716902.yasu@utahime.org> In-Reply-To: <20190914.180149.507595364120716902.yasu@utahime.org> From: Aryeh Friedman Date: Sat, 14 Sep 2019 05:20:48 -0400 Message-ID: Subject: Re: OT: My ssh authorized_keys doesn't work with nfs/nis To: Yasuhiro KIMURA Cc: FreeBSD Mailing List X-Rspamd-Queue-Id: 46Vn711qHGz3FkY X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ULuxSGmw; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::d2c as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[5]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-5.25), ipnet: 2607:f8b0::/32(-2.70), asn: 15169(-2.24), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[c.2.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Sep 2019 09:21:02 -0000 On Sat, Sep 14, 2019 at 5:03 AM Yasuhiro KIMURA wrote: > From: Aryeh Friedman > Subject: Re: OT: My ssh authorized_keys doesn't work with nfs/nis > Date: Sat, 14 Sep 2019 04:15:59 -0400 > > >> Did you set passphrase when creating id_rsa.pub (and id_rsa)? > > no > > Umm, then it seems that ~/.ssh/authorized_keys on 'nearby' is surely > not looked up by sshd. > > By the way, according to mail subject 'nearby' seems to be NFS client > too. And I guess you share home directory with NFS. If it is right, > what happens if you use local (i.e. non-NIS and non-NFS) account? That > is, > Correct I am using NFS shares for the home dirs > (1) Add new user 'localuser' to /etc/masster.passwd of 'nearby'. > (2) Create home directory of 'localuser' on local file system of > 'nearby'. > (3) Copy id_rsa.pub as ~localuser/.ssh/authorized_keys on 'nearby' > (4) Try 'ssh localuser@nearby'. > > Doesn't ask for password localaccount --> localacccount but localaccount --> NISaccount does ask for a password (I made the authorized keys identical for both accounts). -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org