From owner-freebsd-questions@freebsd.org Wed Feb 10 09:13:30 2021 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 1EBBA5408B4 for ; Wed, 10 Feb 2021 09:13:30 +0000 (UTC) (envelope-from pstreem@gmail.com) Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DbDZd23kFz3Qry for ; Wed, 10 Feb 2021 09:13:29 +0000 (UTC) (envelope-from pstreem@gmail.com) Received: by mail-il1-x131.google.com with SMTP id o7so1206198ils.2 for ; Wed, 10 Feb 2021 01:13:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2HYTL7ldhS6bUDGUpU9/PcJ/CXJ0roP4DHNM4bqeAMk=; b=OWAeDeaFoNcidk/ln+HduiqXmIPvyrnhwxb1SaJA0xDN5jhIc6FMb1GUrdp48diOGh 7gQ2An6iAa71pTFxWukfjW7r3lS+UXfMyoe+hM670ZVKCITNEqm3GXOZIQ5dDZn357OY J7k6S7bBDJUgEuNDVQDpgOzkdI6AL0efxN9VpFYv4bmQ4llaPuoF3UNY3MW3SlWnzSCL mURgLEnlBHJHLy5RroLlWBbs+tnLWNTDop1EcMXN14akL1rjlON6jKOEcHWdgmQ/xGiI f7ahOs1C++d7EzypF8eRDnsHU+UDGaR9Rf0mDN4JlDWGUbjOQDSVoLbFYyWA9+J9Gg/p kVFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2HYTL7ldhS6bUDGUpU9/PcJ/CXJ0roP4DHNM4bqeAMk=; b=MMVXOQCJzga23s5yqcejy7Cfe/eEgHk+pGNjGf8x733YHYk2Efyh8ChSH98PBghKSX eu6EZAmKnSsI2vPY7CfLcb8fU1g/heO1loXZwnrv6hkNhN3y9OKYkUD+RCO0UNgAKSNA pw6GFzem5xDGsx+HQQJwaTGsVRiAdqf4su93pXMaTF3/xWWpBrH+FAQlSSYQ6sJZwjet 6MCKMccgIdnfcrqYDUrg1MV6OhyxBMcr+VwarlwyjyLFoJ6oj6riEAkJf0znbDiuCSEt aJSa3mqzcaQYcDlqup78AEpv3cKEA7M7N6bpo1+WMJpjIGCmm8P2FTYBFCm2/D0h6tHi VImg== X-Gm-Message-State: AOAM531FGYphPaImQaNCUn7FPFibYLFKxnztQoxAUkmTc6TXWUwuVhVS rAqRpVV9x6aqWZIFGoTSSmArFpsamT02Noks1r48zqNuxvGu7Lg8L4Y= X-Google-Smtp-Source: ABdhPJzYOpnZUaA4J0rEsENKtt0dHaqV11lvg6ULyDA1eTjj8pNgnRUeGU1Ds1/MRpwFuENE7evx5Kq71C1WvI+hM0Y= X-Received: by 2002:a05:6e02:1d85:: with SMTP id h5mr150928ila.246.1612948408026; Wed, 10 Feb 2021 01:13:28 -0800 (PST) MIME-Version: 1.0 References: <65d54e7c-9d2c-ec74-1c1c-b0d87bfed6c1@yuripv.dev> In-Reply-To: <65d54e7c-9d2c-ec74-1c1c-b0d87bfed6c1@yuripv.dev> From: PstreeM China Date: Wed, 10 Feb 2021 17:13:16 +0800 Message-ID: Subject: Re: Permission denied via ssh over ipv6 To: Yuri Pankov Cc: Doug McIntyre , "freebsd-questions@freebsd.org" X-Rspamd-Queue-Id: 4DbDZd23kFz3Qry X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=OWAeDeaF; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of pstreem@gmail.com designates 2607:f8b0:4864:20::131 as permitted sender) smtp.mailfrom=pstreem@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::131:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.10.47:email]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::131:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DBL_PROHIBIT(0.00)[0.0.10.47:email]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::131:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2021 09:13:30 -0000 my fault. the system i mentioned in the original question "FreeBSD 12.2" is the ssh server. for this case, the system which i used as the client is also FreeBSD 12.2. test from other host(from different network ) as the client to ssh to the " 2607:f130::6287", it's the same issue. test from the localhost (the host config the ipv6 address as 2607:f130::628 ), use the command: %ssh myuser@2607:f130::628, it's work well. I don't know what is the problem, how to fix. BR//Ming On Wed, Feb 10, 2021 at 4:47 PM Yuri Pankov wrote: > PstreeM China wrote: > > hi: > > > > thanks for your quickly reply. > > ssh -vvv log as below, we can see the connection has already established, > > but after input the password, it's not work.. > > i'am sure the password is right, try modify the passwd has the same > issue. > > > > about the DNS PTRs, how should i do ? the source is my home pc, not have > > DNS domain. > > > > -------------------------------- > > rpi% ssh myuser@2607:f130::6287 -vvv > > OpenSSH_7.9p1, OpenSSL 1.1.1h-freebsd 22 Sep 2020 > [...] > > debug1: Local version string SSH-2.0-OpenSSH_7.9 FreeBSD-20200214 > > debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4 > [...] > > Permission denied, please try again. > > myuser@2607:f130::6287's password: > > From your original question it's not clear whether FreeBSD 12.2 system > is the client or server, and given the above I'm guessing it's the > former as remote version doesn't say "FreeBSD" and is otherwise > outdated; correct? > > Also, are you able to connect to 2607:f130::6287 from any other host to > make sure it's correct address to use and is accepting v6 connections? > > > On Wed, Feb 10, 2021 at 1:18 PM Doug McIntyre wrote: > > > >> On Wed, Feb 10, 2021 at 11:47:08AM +0800, PstreeM China wrote: > >>> Very thanks, this problem has searched from google, but not find the > >>> solution to fix this issue. > >>> > >>> new install FreeBSD in virtual machine. > >>> Freebsd version is 12.2 > >>> Duel stack support ipv4 and ipv6; enable sshd as default. > >>> I can ping the ipv4 and ipv6 address. > >>> > >>> The problem is: > >>> SSH over ipv4 is work well. > >>> But ssh over ipv6, Can be connected, but after input the password, it > is > >>> failed , give the notify : permission denied. > >>> can not log into the server. > >>> I am sure the password is right. > >> > >> > >> Have you run 'ssh -vvv' to see all the very verbose debug information? > >> > >> Do you have proper DNS PTRs setup for your IPv6 block? It could be > >> blocked by mismatch reverse DNS. >