From owner-freebsd-questions@freebsd.org Wed Feb 10 10:49: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 7430B5425D1 for ; Wed, 10 Feb 2021 10:49:30 +0000 (UTC) (envelope-from pstreem@gmail.com) Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) (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 4DbGjP5hpfz3nWv for ; Wed, 10 Feb 2021 10:49:29 +0000 (UTC) (envelope-from pstreem@gmail.com) Received: by mail-il1-x12a.google.com with SMTP id p15so1382589ilq.8 for ; Wed, 10 Feb 2021 02:49: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=jfiM9chy1v3ehAakMYjuOy15iluDkibXc4+yEE1UEaU=; b=oe5LpJ9ceycb32OiVp6+9vhkorTOsH9zeLclQmbVsGzOZOwRMuPeFXLTXE7nQLKJX7 FuFaOBYhjKU6x/qLQ8PIe4gJZ46x5VdisoN+c2RxS6u49KGUptCO0ML1ps22NgXL2SVt BU6UW20CenxayGKqgm5Z/aEQ168OLHXbo66tv5w6U78V1/nj27biV7vJ1fFnW9am1U+y jgzCMY+XzbSb6OSDq4PMS8z5uoxk05BHRYL6gkq0MvzMQciaO2gAHjy+S3Srf8+lYM9r aL4Pj1xX1ShV1+bd4GHGryIuOC4nFaeY7f3bGUY8gE5imFA2Br82hECWES+ykAx8vmix VBDw== 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=jfiM9chy1v3ehAakMYjuOy15iluDkibXc4+yEE1UEaU=; b=lBFhMQUQYak8xwX7s+Tikk+xaW7qz1zyoSVn3cEsBmQO/cRDV5XD66jgXyu7pIIlYr nqNjLZuARSQDfbloozO4INZfrzcn6HdAjjzJ/QxpVPiYU75FBvy9BntmqHz2bet/o90U fMxPA6QhzUamuQG2UwQNVNx0gkMzosXuQA1VpUgObJkENvvLLZxrxMPA2z3yaaJYSMqU TnBwnD8vLPVYoyvnuooe+0YUveqmtoyqKp5SA6xsPpP2l2KFgntBROVrWLnj7JaxY0sW 7Inzf13GhjvHDqaS1vAKZC9uIiFD9Z0LcqzEdqnHZGVEY+6tEhYiabxiz9KkLEn7nXmC FzTA== X-Gm-Message-State: AOAM531voqmVG9C3eOG//4lChHKVdkoFDkqQLKO9wxb3rX3upBcV6MTe 3TOPkcYVcKdqtNtkUwtlbd44B7Iup1hUUhOCLo0G9+MQVFIYhKh4 X-Google-Smtp-Source: ABdhPJwo6jtURfebO0/Znj+QRVofy7iMBosi9BY8ta1+8bI6tdcH7+2u47VYMYoe9GjvFqNUyE/38CQ1//TmVPpb5gA= X-Received: by 2002:a05:6e02:18c9:: with SMTP id s9mr442888ilu.265.1612954168820; Wed, 10 Feb 2021 02:49:28 -0800 (PST) MIME-Version: 1.0 References: <65d54e7c-9d2c-ec74-1c1c-b0d87bfed6c1@yuripv.dev> <0fc3cba3-f5f8-c610-0065-296c73227c1f@yuripv.dev> In-Reply-To: <0fc3cba3-f5f8-c610-0065-296c73227c1f@yuripv.dev> From: PstreeM China Date: Wed, 10 Feb 2021 18:49:17 +0800 Message-ID: Subject: Re: Permission denied via ssh over ipv6 To: Yuri Pankov Cc: "freebsd-questions@freebsd.org" X-Rspamd-Queue-Id: 4DbGjP5hpfz3nWv X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=oe5LpJ9c; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of pstreem@gmail.com designates 2607:f8b0:4864:20::12a 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:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.999]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::12a:from]; 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)[]; 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::12a: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::12a: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 10:49:30 -0000 My Stupid fault. Yes, your are right, the server I connected is not the right system. There is some issue network related. Has ask the ISP troubleshooting this case. Thanks all you.... On Wed, Feb 10, 2021 at 17:38 Yuri Pankov wrote: > PstreeM China wrote: > > 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. > > That would mean, and the log you provided confirms, that you are > connecting to wrong system, "remote software version OpenSSH_7.4" is NOT > FreeBSD 12.2 sshd reply. For further investigation, you could provide > network configuration, i.e. `ifconfig`, `netstat -rn` output and > relevant rc.conf entries from both client and server. > > > 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. > >