From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 28 Apr 2022 20:23:52 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nk8nx-00154Y-BT for lore@lore.pengutronix.de; Thu, 28 Apr 2022 20:23:52 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nk8nv-00053J-5W; Thu, 28 Apr 2022 20:23:51 +0200 Received: from smtp69.iad3b.emailsrvr.com ([146.20.161.69]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nk8nJ-000539-2d for ptxdist@pengutronix.de; Thu, 28 Apr 2022 20:23:13 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mev.co.uk; s=20190130-41we5z8j; t=1651170190; bh=s7dLnnQlA6fizHfxYDv0KXHL32BKiJ7uxSySvE97GNE=; h=Date:To:From:Subject:From; b=avL2ZexP07FCK0LuzPNZvEFPqvFCsoFzM+6NbmzY1zHS59aj9Zo+lTfyQPevyyTqa S7gTlTEU+49gdSlufxjTVBXz75DKcRqw4B5oN0o2JsYRUYTnNKbK/anI5r5Y3hDW5Z AxffPmK/Mp3dSsZyq8glPIWGzQEvabGoI2yfU3pI= X-Auth-ID: abbotti@mev.co.uk Received: by smtp1.relay.iad3b.emailsrvr.com (Authenticated sender: abbotti-AT-mev.co.uk) with ESMTPSA id C94E8600A2 for ; Thu, 28 Apr 2022 14:23:09 -0400 (EDT) Message-ID: Date: Thu, 28 Apr 2022 19:23:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 To: ptxdist@pengutronix.de Content-Language: en-GB From: Ian Abbott Organization: MEV Ltd. Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Classification-ID: eb84faff-4b33-447f-840b-4cca5f16d7cf-1-1 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-4.3 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] dropbear and sftp-server mismatch X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Hi there, Since scp now defaults to using the SFTP protocol which is not built in to dropbear, I thought I'd configure my platform to enable OPENSSH_SFTP_SERVER, but I ran into a 'gotcha'. The server gets installed as "/usr/sbin/sftp-server" (and `--libexecdir` is configured as "/usr/sbin"), but dropbear looks for it at "/usr/libexec/sftp-server". The path to the sftp-server can be set in dropbear by defining the `SFTPSERVER_PATH` macro in "localoptions.h" file (constructed by "rules/dropbear.make"). That is not currently done, but is easy enough to add. I was wondering whether it should be made configurable by a new option in "rules/dropbear.in" or not (using "/usr/sbin/sftp-server" as the default value). -- -=( Ian Abbott || MEV Ltd. is a company )=- -=( registered in England & Wales. Regd. number: 02862268. )=- -=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=- -=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-