From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25760 invoked from network); 11 Jul 2022 06:18:43 -0000 Received: from hurricane.the-brannons.com (2602:ff06:725:1:20::25) by inbox.vuxu.org with ESMTPUTF8; 11 Jul 2022 06:18:43 -0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by hurricane.the-brannons.com (OpenSMTPD) with ESMTP id f5d35e9f for ; Sun, 10 Jul 2022 23:18:40 -0700 (PDT) Received: from nautica.notk.org (nautica.notk.org [91.121.71.147]) by hurricane.the-brannons.com (OpenSMTPD) with ESMTPS id 6a1f2911 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sun, 10 Jul 2022 23:18:33 -0700 (PDT) Received: by nautica.notk.org (Postfix, from userid 108) id 0D22EC01B; Mon, 11 Jul 2022 08:18:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1657520311; bh=wJ3IrVGv77fBr962bRvGCluBNmTUYHf1J+3NbD/vjuE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0MueC1JBmVglr0XNBsfRNp5DzQw7LSBI1g8ctyfwVb3Y0J7ycQcEaKZrdVIrNl6JX tfNmvqM0bf+hst0Q6KO+2gxsg7Q79qsUpkm58OTRWF6tuxh5MTTIlvrMI6px5kryS/ 0tpUoERlmIIUfRlIUhGpnfAWN0dpoZrHNFNS8aauOdHMZSZiUux8PmmrvWY8Ne8jDF 3kcPNifKK+1QhVY85JQ9WIGZu5SY2VTjcmA4vIZtsV3hpbMfZbQBjjqMIx9ngbJC2y ySm+coorKOusvLoLbfirb4fw8fIe6I+2ITY+vqiQyqeCgWYiWv2BATo5RQVMBQITpp +mETECOHwx/gg== Received: from odin.codewreck.org (localhost [127.0.0.1]) by nautica.notk.org (Postfix) with ESMTPS id D8DF9C009; Mon, 11 Jul 2022 08:18:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1657520310; bh=wJ3IrVGv77fBr962bRvGCluBNmTUYHf1J+3NbD/vjuE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=3782WIYkdTijm4C4N8OU503Ji3GVDWa6EYFXjx5FVxI+bIfgtDI8P38/Zx9biBWtd rxZSwhOG7KtdjC4gb4uQZylXBuppteBzuwJEK/i3mnNV8TcNHVE5Nikc9hOWduIGs0 +gErvMKf1A29hMZ26JONn5mUgp+C5H4Ck9dSDrs/zvFqNvRNq1v5EWrvgkVIslrrWm CUbUtEDOJq6U5jd9F906THUlG4KoxI2la5t03d9yJLZUv4vAVZLB4HxRDFJgeRTL+g jwtB0dZdlGz8SNI7P5Wp7lBAFijIT/hKpSMha0GwXYKYEZovkKbRdDa0XscWt7yT4j GQROOlBT8lKDw== Received: from localhost (odin.codewreck.org [local]) by odin.codewreck.org (OpenSMTPD) with ESMTPA id feb57293; Mon, 11 Jul 2022 06:18:25 +0000 (UTC) Date: Mon, 11 Jul 2022 15:18:10 +0900 From: Dominique Martinet To: Karl Dahlke Cc: edbrowse-dev@edbrowse.org Subject: Re: ftp scp uploads Message-ID: References: <20220611011118.eklhad@comcast.net> X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220611011118.eklhad@comcast.net> Nice! Karl Dahlke wrote on Mon, Jul 11, 2022 at 01:11:18AM -0400: > But scp is pretty cool. Give it a try. Just a warning here: scp the command won't go away, but it switched to using sftp as underlying protocol in the latest openssh version (8.9) I'm assuming scp (the protocol) will eventually get disabled, and we should probably support sftp:// instead -- curl also has support so it should be the same > 1. I can't use keys to ssh in; I have to specify login and password, > which is kind of a pain. Is that a limitation of curl, or is there > some other way to tell it to use public keys? Some sites only allow > for ssh with keys. That should be possible, curl the command has --key / --pubkey to provide the keypair (since 7.16.2 according to the documentation) >From a quick grep it looks like the curlopt equivalents are CURLOPT_SSH_PRIVATE_KEYFILE CURLOPT_SSH_PUBLIC_KEYFILE which should be usable with file path? I haven't tried. > 2. I have to specify the absolute path, it starts from / not from my > home directory. This is different I think from how ftp works. Also > different from the shell scp command, so is confusing. Not sure but that might be different with sftp as well, might be worth testing. -- Dominique