"When you get a bunch of remote SSH sessions going it's easy to
lose track of where you really are, because all you see are boring
old generic prompts. Sure, they show the hostnames, but it's still
easy to get confused. Which can be a bit amusing when you issue a
reboot command to the wrong computer, or send a cranky broadcast
message to all users on the wrong system. An easy way to keep track
is to colorize and customize the Bash prompt on your remote
systems, so you can easily differentiate them from your local
login. You can assign different colors and text for different
machines and accounts. For example, you can make the prompt turn
green and display the text "THIS IS AN SSH SESSION"..."
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.