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.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6772 invoked from network); 12 Apr 2021 15:59:14 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 12 Apr 2021 15:59:14 -0000 Received: from a10-70.smtp-out.amazonses.com ([54.240.10.70]) by 1ess; Mon Apr 12 10:42:31 -0400 2021 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1618238226; h=From:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:To:In-Reply-To:Message-Id:Feedback-ID; bh=raj8xHxuW9hUBbND0/oOczvR4HzgU8xah/DnC0kUU7s=; b=jYiyowbot6NE6moFyuZGmZ9lbxzupKTO0Gn0DwWHzwd8N7cvd7AEDzUxvfBWm0DK M/nd4+yZ4mQR3+kC60DwolAMRhrRmb1xkfLfsRLhXhd7/CXdH4gVkUCrOeRB3IdqtM/ LJe69Nj8HG4eNMtSH/QPA6xvt3Yx1ZxYvyjb+UJ8= X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=50.202.122.66; envelope-from=; From: Mack Wallace Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Date: Mon, 12 Apr 2021 14:37:06 +0000 References: <01000178a33d0f3b-ec840ea8-201f-432f-a5a5-b13993a12dba-000000@email.amazonses.com> To: 9front@9front.org In-Reply-To: Message-ID: <01000178c683bfb3-545c8793-65da-472d-a046-a57e85ac1d44-000000@email.amazonses.com> X-Mailer: Apple Mail (2.3608.120.23.2.1) X-Authenticated-User: mackbw@mapinternet.com Feedback-ID: 1.us-east-1.X+xhoL9JiEQ8K0gzGjV36WZnSewOzOs8YCWuakKsLBY=:AmazonSES X-SES-Outgoing: 2021.04.12-54.240.10.70 List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: shared browser rails element engine optimizer Subject: Re: [9front] Is there a way to extend telnet through rexport? Reply-To: 9front@9front.org Precedence: bulk Thanks everyone. Using con -l I was able to connect to a telnet service that was = rexported from machine to another. I was able to do this as follows; First: set up the connection to the host machine as a service telnet -s service_name host Second, if one needs to log into the host to keep the host from closing = the session, echo the login to a file. In my case, the user name a = password were both admin. Knowing that after a connection the host = immediately asked for a username and then a password allowed me to do = this =E2=80=9Cblind.=E2=80=9D So I used the following twice: echo admin >> /srv/service_name To export that service file to another 9front machine, I had to bind = that service to another file. In this case I set up an =E2=80=98exports=E2= =80=99 directory under my home directory. In exports, I =E2=80=99touched=E2= =80=99 a file named for the host. This allowed me to then bind using: bind /src/service_name /usr/user_name/exports/host_named_file I was then able to export to the 9front server: rexport -s exported_service_name /usr/user_name/exports 9front_server=20 =46rom the 9front server I was then able to mount /srv/exported_service_name /n/exported_service_name (or whatever = you want) Then I was able to con -l /n/exported_service_name/host_named_file This will work fine, as long as one doesn=E2=80=99t do something to make = the host at the far end close the connection. For me, this means to = never select =E2=80=9Cquit=E2=80=9D (type q) from a menu of choices = that the host provides, but use the control-/ and q for the con program = to close its connection without any of the other connections closing. Hopefully those notes will be useful to someone someday. For one of the machines I=E2=80=99m connecting to, I did compile u9fs = and get it working. I haven=E2=80=99t done much file work with it, but = it=E2=80=99s a start. I would love to use u9fs on another device, but = the manufacturer has the system pretty locked down, with only telnet and = tftp as means of getting files in and out. If only I could crack the = root account. Oh well.=20 Thanks for the help.=20 > On Apr 5, 2021, at 10:14 PM, Lyndon Nerenberg (VE7TFX/VE6BBM) = wrote: >=20 > Mack Wallace writes: >>=20 >> I have a number of different sites which each have numerous disparate = =3D >> systems that need to be administered - essentially by moving files =3D >> around. I want to use Plan9/9front to consolidate these systems at = each =3D >> site and present them as a file structure on a server in the main =3D >> office. So essentially each location has its own subdirectory, and = each =3D >> system as that site is represented by a subdirectory below that. >=20 > Depending on how 'disparate' those machines are, you might get > surprisingly close to your goal by running u9fs on the target hosts. > That, combined with a bit of ssh glue on the Plan9 side, will let > you import arbitrary filesystem trees from remote UNIX-like hosts. > It's not completely seamless, and you'll have to accept some very > basic 'all or nothing' permissions -- the exported filesystems will > have the permissions of the uid/gid running u9fs. But you can get > a surprising amount of work done with this model, despite the > restrictions. >=20 > Several years ago I ran a setup like that to remotely monitor and > administer about a half dozen sites scattered all over the place; > it worked remarkably well, even if it wasn't the most blazingly > fast for network I/O. Since then the Plan9 ssh implementations > have changed, so what I had before no longer works. But, my lack > of motivation to fix bitrot aside, there's no reason I (read 'you') > couldn't build something like that today. >=20 > --lyndon >=20