From nobody Wed Dec 27 18:55:50 2023 X-Original-To: freebsd-arm@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 4T0gp82bGZz567l7 for ; Wed, 27 Dec 2023 18:56:00 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T0gp76V8zz4LZy for ; Wed, 27 Dec 2023 18:55:59 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Authentication-Results: mx1.freebsd.org; none Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.17.1/8.15.2) with ESMTPS id 3BRItpC3034442 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 27 Dec 2023 10:55:52 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.17.1/8.15.2/Submit) id 3BRItoAe034441; Wed, 27 Dec 2023 10:55:50 -0800 (PST) (envelope-from fbsd) Date: Wed, 27 Dec 2023 10:55:50 -0800 From: bob prohaska To: Mark Millard Cc: John F Carr , "ticso@cicely.de" , Marcin Cieslak , "freebsd-arm@freebsd.org" Subject: Re: USB-serial adapter suggestions needed Message-ID: References: <16864054-4os0-pq3p-7qp0-7299666908os@fncre.vasb> <55q37289-ss30-nq9o-7r31-086n999p394s@fncre.vasb> <23100FB9-BB4A-48FF-A715-84EF7F6F59A6@mit.edu> <6DD2FDE4-77DB-499A-AED8-F179A9DAA0EF@yahoo.com> List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6DD2FDE4-77DB-499A-AED8-F179A9DAA0EF@yahoo.com> X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4T0gp76V8zz4LZy Here's another example of a spontaneous disconnect, followed by brining the ssh session back up and re-starting tip. The USB end of the link is a 14-release Pi3 on the local network, so it does not see ssh door-knocking. The serial console display is on a host which is on the public Net and so does see frequent ssh attacks login: login: Login timed out after 300 seconds Dec 26 17:56:56 www login[8694]: 1 LOGIN FAILURE ON ttyu1 FreeBSD/arm64 (www.zefox.org) (ttyu1) login: FreeBSD/arm64 (www.zefox.org) (ttyu1) login: FreeBSD/arm64 (www.zefox.org) (ttyu1) login: client_loop: send disconnect: Broken pipe bob@raspberrypi:~ $ ssh 192.168.1.10 Password for bob@pelorus: Last login: Thu Dec 28 23:01:43 2023 FreeBSD 14.0-RELEASE-p4 (GENERIC) #0 releng/14.0-n265400-4edf3b80733e: Wed Dec 27 20:21:26 PST 2023 Welcome to FreeBSD! Release Notes, Errata: https://www.FreeBSD.org/releases/ Security Advisories: https://www.FreeBSD.org/security/ FreeBSD Handbook: https://www.FreeBSD.org/handbook/ FreeBSD FAQ: https://www.FreeBSD.org/faq/ Questions List: https://www.FreeBSD.org/lists/questions/ FreeBSD Forums: https://forums.FreeBSD.org/ Documents installed with the system are in the /usr/local/share/doc/freebsd/ directory, or can be installed later with: pkg install en-freebsd-doc For other languages, replace "en" with a language code like de or fr. Show the version of FreeBSD installed: freebsd-version ; uname -a Please include that output and any error messages when posting questions. Introduction to manual pages: man man FreeBSD directory layout: man hier To change this login announcement, see motd(5). You can prevent the removal of a ZFS snapshot by using the hold subcommand. For example, to prevent the snapshot called milestone from deletion, run the following command: # zfs hold milestone_hold mypool/projects@my_milestone The "zfs holds" command will list all current snapshots that are protected this way (-r for a recursive list): # zfs holds -r mypool The TIMESTAMP column in the output of the above command is from when the hold was created, not the snapshot it holds. The "zfs destroy" command will echo a "dataset is busy" message on the console when it encounters a hold. Use "zfs release" to release the hold on the snapshot: # zfs release milestone_hold mypool/projects@my_milestone -- Benedict Reuschling bob@pelorus:~ % su Password: # tip ucom Stale lock on cuaU0 PID=1312... overriding. connected Dec 26 2pts exce [enter typed, this looks like a log entry from the public host] Password: [but how did it get reflected back to that host as input?] Login incorrect login: It isn't surprising to see leftover data flushing into the USB end host when tip opens the serial connection. It is surprising that the host at the serial end of the line sees some of that data as input, at least to me. Maybe I simply misunderstand ...... Does getty not flush input before asking for a login and password? Is echo happening between tip sessions? Thanks for reading. bob prohaska