brent saner via plug on 27 Sep 2024 11:06:12 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Slow Down an ssh Session


On Fri, Sep 27, 2024, 06:03 Casey Bralla via plug <plug@lists.phillylinux.org> wrote:
In the "good old days", I used a DEC PDP-8 with a hulking noisy
teletype.  To relive my youth, I bought a PiDP-8, which is just the
front panel of the PDP-8, run by a Raspberry Pi.

The Pi, of course, is waaay faster than the PDP-8, so I set some
parameters in the simulator software to slow it down to the speed of an
actual PDP-8 from the early 70's.

Since I don't have a real teletype (I actually had one and gave it away
years ago.  Ugh!  I wish I kept it!) I'm using an ssh session on an old
laptop as a terminal.

But this means the effective terminal baud rate is like warp speed
compared to the teletype.

I'd like to mimic the original 110 baud teletype.  Other than actually
connecting via 110 baud serial connection, is there a way to throttle
the effective baud rate of ssh?

tc(8) is what you want.

Here's an example of someone using it to mimic slow client connections for website UX testing:

https://serverfault.com/q/507658

You'll probably want to increase the timeout thresholds in your sshd config(s).
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug