From owner-freebsd-questions@freebsd.org Wed Apr 8 08:40:26 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 212842AD6EC for ; Wed, 8 Apr 2020 08:40:26 +0000 (UTC) (envelope-from mail@osfux.nl) Received: from vm1982.osfux.nl (vm1982.osfux.nl [79.99.187.212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48xyQc5NNKz3R6t for ; Wed, 8 Apr 2020 08:40:24 +0000 (UTC) (envelope-from mail@osfux.nl) Received: from vm1982.osfux.nl (localhost [127.0.0.1]) by vm1982.osfux.nl (Postfix) with ESMTP id 3F9D92014F for ; Wed, 8 Apr 2020 10:40:13 +0200 (CEST) X-Spam-Status: No, score=0.0 required=5.0 tests=none shortcircuit=no X-Spam-Checker-Version: SpamAssassin 3.4.3 Received: from [192.168.9.195] (unknown [95.174.67.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by vm1982.osfux.nl (Postfix) with ESMTPSA for ; Wed, 8 Apr 2020 10:40:13 +0200 (CEST) Subject: Re: difference in sshd protocol options To: freebsd-questions@freebsd.org References: From: Ruben Message-ID: <081421ff-7295-4406-fb17-fc5b4c974e95@osfux.nl> Date: Wed, 8 Apr 2020 10:40:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48xyQc5NNKz3R6t X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.60 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[osfux.nl:s=default]; NEURAL_HAM_MEDIUM(-0.87)[-0.866,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(0.27)[asn: 8315(1.31), country: NL(0.03)]; DKIM_TRACE(0.00)[osfux.nl:+]; DMARC_POLICY_ALLOW(-0.50)[osfux.nl,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:8315, ipnet:79.99.184.0/21, country:NL]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2020 08:40:26 -0000 Hi David, I don't know the answer to your question but I had an "interesting" run last year as well. I couldn't distill from your message whether or not you got things to work, perhaps my ramblings will save some further frustration if you didn't. The android apps I tried all used a Java library for the actual syncing etc, which I only got working after adding this to my "global" sshd config: ChallengeResponseAuthentication yes Without it, all auths (by all apps I tried) resulted in: # sshd[14279]: error: Received disconnect from X.X.X.X port 35190:3: com.jcraft.jsch.JSchException: Auth fail [preauth] My global PasswordAuthentication setting is set to "no". I also added: Ciphers aes256-ctr,aes192-ctr,aes128-ctr to my configuration around that time, can't remember if that was an actual attempt to allow apps authenticating against OpenSSH or not. My individual android devices all have a "match" block: Match User test123 ChrootDirectory %h ForceCommand internal-sftp AllowTcpForwarding no PermitTunnel no PasswordAuthentication yes This combination works for all apps i've tried since. Kind Regards, Ruben On 4/8/20 7:59 AM, David Mehler wrote: > Hello, > > I just went through an interesting go tonight getting an android file > manager to connect via sftp to my FreeBSD 12.1 sshd server. I've got > two questions. Refering to the sshd_config man page the > HostKeyAlgorithms option and the PubkeyAcceptedKeyTypes options is > there a difference between the options (both of which appear in the > default) ssh-rsa and ssh-rsa-cert-v01@openssh.com? > > Thanks. > Dave. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >