From nobody Thu Nov 17 02:59:59 2022 X-Original-To: ports-bugs@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 4NCPlz6CCBz4htwb for ; Thu, 17 Nov 2022 02:59:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NCPlz463yz3NvG for ; Thu, 17 Nov 2022 02:59:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668653999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=w4lhimhZzXmranpzuGhpLt2BskOIyLqtKoKZAnAwXZc=; b=kC0rxMAtOWAO5iyUhn84z+JjtVmAsiUoVrpizpon/fGTd5+qt6t7zpMZydHAC/XKub3G7T knWiCfki/mFaf9StKciBbhw5pG30gKrQc+NzeygMMh0geQne1P5c7p2zUypR0IXFIc2Bjj jS5GsmqWfG/0aHP1OWTwOCE1enb5KiINoIRsCI1xgYG6kM+xPTn+qJISdyt9/LLOrnezq8 9+mkzM87XoB0/s9AVwJ9zwehPC7mm2GPAChMBMHYz3U4O2NSWvW/V2EqR4NzmEMHbVK/yS Ex/GQg2cL8tu7kShtYxOAWTNlvK4VtmJu0WIApkIWhYuqUfDRZnJrTuxiPd87Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668653999; a=rsa-sha256; cv=none; b=ZowPimLiUNGSyZjPzGLldrGCeMzWOfLizIZMxpvrqmW+dYD7p3DMRtdyO50A1tPguTiJLQ IozwUAFWy2OqzXqYqPoLkMTt7EqKz3Vbm9/n+sMNubn75tYQGeu4IA5HTiPzc2rL5mPJ8W wCwHoxKMeMa/pv47QCbPJkTNYs12oIpuCBJFPXd9+Mi9jtbJ36ovXCGSxsbiu53Fp9J0Tz GQ1KDwe/YIccnLWcaPTSHh6rfOBo7EdUjnbxWp26kTotaPWkQKde8DU0Irnb3A9m8JYTZX a9V4vkzvwWphYC8rP7MgEPwTtLWsmluoUjj4UJV9ySgs79cvMj+2g4xdqPaRjQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NCPlz2yP6zQrh for ; Thu, 17 Nov 2022 02:59:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2AH2xxB6032717 for ; Thu, 17 Nov 2022 02:59:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2AH2xxQD032716 for ports-bugs@FreeBSD.org; Thu, 17 Nov 2022 02:59:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 267819] misc/mc Midnight Commander cannot SFTP into FreeBSD with PasswordAuthentication set to no and UsePAM set to yes Date: Thu, 17 Nov 2022 02:59:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: iio7@tutanota.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: danfe@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267819 Bug ID: 267819 Summary: misc/mc Midnight Commander cannot SFTP into FreeBSD with PasswordAuthentication set to no and UsePAM set to yes Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: danfe@FreeBSD.org Reporter: iio7@tutanota.com Assignee: danfe@FreeBSD.org Flags: maintainer-feedback?(danfe@FreeBSD.org) The default SSH authentication mechanism is to ask for a username and a password, which is what OpenSSH does when PasswordAuthentication is said to "yes". When the option is changed to "no", using a password doesn't work and you have to login by e.g. a key. However, the FreeBSD 13.1 version also has= the option "UsePAM", which is default set to "yes". So this means that PAM is authenticating users. With that setup regular SSH and SFTP into the FreeBSD box via the console works, but using Midnight Commander to SFTP into the FreeBSD box doesn't wo= rk and it fails with 'Cannot chdir to "/sftp://foo"' Changing the "PasswordAuthentication" option to "yes" solves the issue. I am not sure why Midnight Commander fails when it's PAM that is authentica= ting users, but I suspect it has to do with the format of the command being send. Steps to recreate the issue: 1. Have a FreeBSD box with SSH access running. Make sure the defaults setti= ngs are set, "PasswordAuthentication" is "no" and "UsePAM" is "yes". 2. Open Midnight Commander and use the MENU option F9. Choose "SFTP Link" a= nd input the username, password, hostname, etc. of the FreeBSD box with SSH running.=20 Midnight Commander fails. 3. Change the "PasswordAuthentication" option to "yes" and restart sshd and= try again, Midnight Commander can now access the host via SFTP. Kind regards. --=20 You are receiving this mail because: You are the assignee for the bug.=