.bash_aliases
function ssh_alias() {
ssh $@;
setterm -default -clear rest;
}
alias ssh=ssh_alias
/ etc / ssh / ssh_config
# Make sure you have this line there:
PermitLocalCommand yes
.ssh / config
Host your.production.host
User root
LocalCommand setterm -term linux -back red -fore white -clear rest
Agora você pode no bash:
some command
# all in default colors
ssh your.production.host
# colors changed
# ....
exit
# colors changed back! yeea!