Force pseudo-tty allocation in openssh

2009-03-12

Edit: As webknjaz has pointed out in the comments below, “RequestTTY force” in .ssh/config will do this now (in fact, it looks like it’s worked for all of the current decade at this point… I’ll leave the original blog post from 2009 intact for posterity / looking back at old things that annoyed me).

ssh has this neat option -t which allocates a ptty so you can run interactive things like Screen or Vi - but there’s no .ssh/config option for it (there’s one for the server, ForcePTTYAllocation). I don’t like having to do alias ssh=“ssh -t” when it’s something that should reasonably be read from the config file (just let me configure the default value of force_tty_flag, dammit!)