Replace TERM=mintty with "xterm" as remote Debian doesn't have "mintty" definition.
--- a/.bashrc Sat Nov 21 19:42:50 2020 +0200
+++ b/.bashrc Sat Nov 21 20:40:18 2020 +0200
@@ -179,6 +179,9 @@
# CYGWIN=noglob causes https://github.com/docker/machine/issues/4516
cygwin) alias docker-machine='CYGWIN= docker-machine' ;;
esac
+case $TERM in
+ mintty*) alias ssh='TERM=xterm ssh' ;;
+esac
# --blank-lines-after-procedures --break-before-boolean-operator --braces-on-if-line --braces-on-struct-decl-line
# --comment-indentationn --space-after-cast --line-comments-indentationn --declaration-indentationn --honour-newlines