[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question regarding the detection of ssh connections with screen
From: |
Thomas Köhler |
Subject: |
Re: question regarding the detection of ssh connections with screen |
Date: |
Sat, 5 Nov 2005 21:12:25 +0100 |
User-agent: |
Mutt/1.5.4i |
Hi Martin,
Martin Hauser wrote:
> Good day,
>
> As i am someone who's regularily working remotely on several machines,
> connecting from a local screen session via ssh to those remote
> maschines. Not all of those offer me the possibilty to run another
> screen there. It'd be really helpful for me i could put an
> identification into the local screens hardstatus line which would
> allow me to recognize that i'm being working on another machine right
> now and even better to let me know hostname and maybe even username.
>
> any ideas? and thanks in advance
Just set the current window's title to "remotehost"?
ctrl-a A
Or even better:
Use
ssh address@hidden -all -other -options
and
function ssh() {
echo -n -e "\033k$1\033\\"
/usr/bin/ssh "$@"
echo -n -e "\033kzsh\033\\"
}
(This asumes zsh, but should also work fine in bash)
> Martin Hauser
Ciao,
Thomas
--
Thomas Köhler Email: address@hidden
<>< WWW: http://gott-gehabt.de
IRC: tkoehler
PGP public key available from Homepage!
signature.asc
Description: Digital signature