From nobody Wed Nov 16 03:07:01 2022 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 4NBnyh5Kltz4hLkZ for ; Wed, 16 Nov 2022 03:07:08 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NBnyh0SgQz44wc for ; Wed, 16 Nov 2022 03:07:08 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.ait.ac.th header.s=selector1 header.b=Mdo4grDx; spf=pass (mx1.freebsd.org: domain of Olivier.Nicole@cs.ait.ac.th designates 192.41.170.16 as permitted sender) smtp.mailfrom=Olivier.Nicole@cs.ait.ac.th; dmarc=pass (policy=none) header.from=cs.ait.ac.th Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id B839C8928E; Wed, 16 Nov 2022 10:07:05 +0700 (+07) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :in-reply-to:subject:subject:from:from:received:received :received; s=selector1; t=1668568025; x=1670382426; bh=XXGDfqaDf VQK6tl64SbFxxnNF4YPIfr5VcUTlz37IeM=; b=Mdo4grDxgxFOc36WwuHm46YoV jqOudRSn8hWX9zz0L+5ntsJBBNKB42WcopwExcmh+AI56jgSBJR+R0LXQzo+dPFi Anu1ayZT/a0o8fEQMKHUEedu8JwxwyhGgM3Nz/0FI+TszLI4lRAk+MSZaXMg+iA9 JUxQ/7GEfniAeYY0vQ= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mrw5UIywtmkM; Wed, 16 Nov 2022 10:07:05 +0700 (+07) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 249AA8928D; Wed, 16 Nov 2022 10:07:05 +0700 (+07) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.15.2/8.15.2/Submit) id 2AG371aH025981; Wed, 16 Nov 2022 10:07:01 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier To: iio7@tutanota.com Cc: freebsd-questions@freebsd.org Subject: Re: Cannot SFTP into FreeBSD boxes with Midnight Commander In-Reply-To: (iio7@tutanota.com) Date: Wed, 16 Nov 2022 10:07:01 +0700 Message-ID: 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 X-Spamd-Result: default: False [-3.70 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.995]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[cs.ait.ac.th,none]; R_DKIM_ALLOW(-0.20)[cs.ait.ac.th:s=selector1]; R_SPF_ALLOW(-0.20)[+mx:c]; RCVD_IN_DNSWL_MED(-0.20)[192.41.170.16:from]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; DKIM_TRACE(0.00)[cs.ait.ac.th:+]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_NONE(0.00)[]; ASN(0.00)[asn:4767, ipnet:192.41.170.0/24, country:TH] X-Rspamd-Queue-Id: 4NBnyh0SgQz44wc X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N iio7@tutanota.com writes: > Nov 16, 2022, 02:49 by Olivier.Nicole@cs.ait.ac.th: > >> iio7@tutanota.com writes: >> >>> When I try, I get the error: Cannot chdir to "/sftp://foo" >>> >> >> That may be it, or not: there is a leading / before sftp >> > I noticed that as well, and tried the command manually, from > Midnight Commander: > > cd sftp://foo > > Cannot chdir to "sftp://foo/" sftp://foo/ is a URL, there is no way you can cd to a URL. I thing you could wget or curl to a URL. Because you have a trailing /, my guess is that MC interprets that as a directory instead of a URL. Bests, Olivier