Cygwin TERM type and ssh-ing to Linux (quick note)

I have been playing with Docker recently from my Windows based laptop. This means a lot more ssh-ing around the place than normal. Using Cygwin has been a help for consistency (shell scripts work on both), but when I ssh in, the TERM variable is set to “cygwin” which the Linux instances I was using does not understand. I tried “vt100”, but its not very good emulation. Here is how I got it to work, based on notes from P Conrad’s Cygwin notes.