Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Using the Konsole terminal-emulator with KDE on Kubuntu 9.10 , I would like to have a different konsole profile (colors, icons) whenever I ssh into a server, so I can easily spot in which konsole tab i'm on the local machine and which i'm on the remote server. I have the different profiles set up, as for now I change that profile manually from the gui ...

share|improve this question
should this be moved to serverfault ? – Jakob Cosoroaba Dec 18 '09 at 13:02

3 Answers 3

up vote 0 down vote accepted

The way to go is to alter the bashrc on the remote server, and set there a different text color.

share|improve this answer

I would add the user@host prefix to the window title (which konsole can use for its tabs (%w in the konsole profile)).

share|improve this answer

The best way I have found is to create bash aliases to connect the servers. For example:

alias resetcolors="konsoleprofile colors=Local"
alias ssh-saturn="konsoleprofile colors=SaturnColors; ssh -X saturn; resetcolors; echo 'Welcome back'"'!'

Where saturn is the name of the server, SaturnColors is the desired profile when connected to the server, Local is your default color scheme for your localhost, and -X is whatever ssh flags you want to use. Now, when you type ssh-saturn, the konsole colors will change and you will connect to the server, after which, your color scheme will be reset (and receive a welcome back message).

This assumes that you have setup ssh keyless login.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.