[plug] Debian sshd config

Matt Kemner zombie at penguincare.com.au
Mon Mar 3 18:39:07 WST 2003


On Mon, 3 Mar 2003, quoth Nathan Alberti:

> I have just configured some new servers with debian and on establishing an
> ssh session the title bar in konsole does not update with the hostname of
> the box I have established a session to. for example, open a konsole
> session, the titlebar says nathan at workstation, ssh to serverx and login,
> title bar becomes nathan at serverx.

Add something like this to your /etc/profile or .bashrc on the
remote servers:

if [ $TERM = rxvt ]
then
  echo -n "^[]0;$USER@`hostname -f`^G"
  echo -n "^[]1;`hostname`^G"
fi

(change the TERM test to whatever konsole sets the TERM to)

use "control-v esc" to create ^[ and "control-v control-g" to create ^G

HTH

 - Matt



More information about the plug mailing list