I did a similar trick with Konsole some time ago. Konsole uses the konsoleprofile command to change the colour scheme, and it does that by printing some hidden characters. I set up an alias for ssh for my terminal to change colour. I used to use a script, but I found that it interfered with other SSH commands like ssh-copy-id.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I did a similar trick with Konsole some time ago. Konsole uses the
konsoleprofile
command to change the colour scheme, and it does that by printing some hidden characters. I set up an alias for ssh for my terminal to change colour. I used to use a script, but I found that it interfered with other SSH commands likessh-copy-id
.