Change terminal colors when connecting to remote server, Linux

I have a habit of changing the terminal background to another color scheme when connected to a remote server. This prevents lots of theoretical, unfortunate mishaps.

Is there a way to change the desktop background automatically, preferably to a color different color scheme for each server? I use konsole, but willing to change a terminal emulator for this feature.

Thanks,

Udi


Solution 1:

Hm, changing background colors could get messy, but changing the color of the prompt when you login to your remove server should be easy. Just add it to your .bashrc file.