From nobody Mon Jan 29 19:33:02 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TNz3k3rcmz59H6X for ; Mon, 29 Jan 2024 19:33:06 +0000 (UTC) (envelope-from freebsd-questions@umpquanet.com) Received: from sfo.umpquanet.com (sfo.umpquanet.com [104.245.33.249]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "umpquanet.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TNz3j73ykz49cP for ; Mon, 29 Jan 2024 19:33:05 +0000 (UTC) (envelope-from freebsd-questions@umpquanet.com) Authentication-Results: mx1.freebsd.org; none Received: from sfo.umpquanet.com (localhost [127.0.0.1]) by sfo.umpquanet.com (8.16.1/8.16.1) with ESMTPS id 40TJX38h032917 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 29 Jan 2024 11:33:03 -0800 (PST) (envelope-from freebsd-questions@umpquanet.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=umpquanet.com; s=20231023; t=1706556783; bh=p6BXnXTVOyArkRFDTJ4Qvfgb4LAa2dHobHaZtAXL9/c=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Zuym+66d+aXtzW73gIqj81CeFTgUhkLZ/dTp2Mk/e/Jib60jd3dCeBrXF1lsQARW7 nFwnWIrC7j/zqJ1pMfT4O1y8Fs84GzSMdMhVEau6uPdwjZiXaEzGTdxnTivp+Vj/bE NviLitZ+OHooZxd8jjNF2jMd0wGZjzIj2lVX8WZ/CrupVloSqxjxr5SGS/r8LkWEjI 7ayvWQQlFvdepgyyVF4C9yejlI5uVb/U4lWTn6JDljYXMB2IqdW9cgyns9iLKSJDDh 5d/QmGNy2Yccjtd0HYnLz+/EbKO381Xrh1Q0F29E5iKuOcMEWhVPhqnOaWpMX3+eie bj0utEyJW36KA== Received: (from james@localhost) by sfo.umpquanet.com (8.16.1/8.16.1/Submit) id 40TJX251032916; Mon, 29 Jan 2024 11:33:02 -0800 (PST) (envelope-from freebsd-questions@umpquanet.com) X-Authentication-Warning: sfo.umpquanet.com: james set sender to freebsd-questions@umpquanet.com using -f Date: Mon, 29 Jan 2024 11:33:02 -0800 From: Jim Long To: Paul M Foster Cc: freebsd-questions@freebsd.org Subject: Re: Enabling SSHD Message-ID: References: <20240129125745.fuh6nnc4dooto2oz@yosemite.mars.lan> <20240129134722.fbwrvamdf2wx4vik@yosemite.mars.lan> <4f60fad9-c5b1-46ea-bfbf-7e654bd5d3d1@FreeBSD.org> <20240129155758.2nnyjihsyiyxztib@yosemite.mars.lan> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240129155758.2nnyjihsyiyxztib@yosemite.mars.lan> X-Rspamd-Queue-Id: 4TNz3j73ykz49cP X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6364, ipnet:104.245.32.0/23, country:US] On Mon, Jan 29, 2024 at 10:57:58AM -0500, Paul M Foster wrote: > > Assuming I want to login as any user on the system, hacking pam > shouldn't be necessary, right? Correct. > I've made the following changes to the stock /etc/ssh/sshd_config: > > PubkeyAuthentication no > PermitRootLogin yes > PasswordAuthentication yes Comment out the first line, and the third line. So then you'll have only one change to the stock file, namely: PermitRootLogin yes Just to ensure there aren't any mistaken assumptions, please confirm by replying with the output of: # grep '^[^#]' /etc/ssh/sshd_config You should see: PermitRootLogin yes AuthorizedKeysFile .ssh/authorized_keys Subsystem sftp /usr/libexec/sftp-server and nothing else. If that's so, then restart the sshd service: # service sshd restart and re-try your logins. You may also find clues in /var/log/auth.log on the sshd server side. Good luck! Jim > And of course, restarted the daemon each time I made a change. However, > when I try to ssh in in the following ways: > > ssh paulf@buckaroo > ssh root@buckaroo > ssh buckaroo > ssh 192.168.254.30 > > I get a flat "Permission denied (password,keyboard-interactive)". Not even > an attempt to ask for a password. > > Clearly something's wrong, but I have no idea what. And I have googled the > problem and visitied numerous sites to no avail. > > Paul > > -- > Paul M. Foster > Personal Blog: http://noferblatz.com > Company Site: http://quillandmouse.com > Software Projects: https://gitlab.com/paulmfoster