View previous topic :: View next topic |
Author |
Message |
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Wed Jun 23, 2004 7:06 pm Post subject: [CLOSED] how to identify different ssh sessions |
|
|
I have about 4 different SSH sessions openned at any one time. Is there any way that the title bar of each sesion could display the user and server such as:
Code: |
user@server1
user@server2
|
This would be very useful because at the moment, they all just show the current user of the client machine and not the remote one. thx
Last edited by trossachs on Wed Oct 06, 2004 6:51 am; edited 1 time in total |
|
Back to top |
|
|
bone Apprentice
Joined: 07 Jun 2002 Posts: 255 Location: Midwest, USA
|
Posted: Wed Jun 23, 2004 7:19 pm Post subject: |
|
|
First of all, we need to know where your ssh sessions are opened from. I use putty when i am on a windows box, and I know that you can set the titlebar per each connection to say whatever. There are certain things that can happen that reset that title though. I havent narrowed them down, but I have seen them change before. |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Wed Jun 23, 2004 7:23 pm Post subject: |
|
|
Hey bone, well I have got sessions to both Gentoo and Redhat servers. None to windows though. When I ssh to my own G box at home, the title bar does not change. Whne I ssh to a mate of mine in Texas, also a G box, then the title bar does reflect both the remote user and server.
So I know, by this, that there is some setting within sshd perhaps which needs a tweak to get it to comply; but I don't know what. I am loathe to play around with ssh as one false move and I may have no communciation with my box until I return to London on Friday! |
|
Back to top |
|
|
bone Apprentice
Joined: 07 Jun 2002 Posts: 255 Location: Midwest, USA
|
Posted: Wed Jun 23, 2004 7:40 pm Post subject: |
|
|
You might want to log into his server and type "set", and then log into yours and type the same. Compare the two and see if any extra ssh_variables are set. I am not entirely sure how to set them, but all my boxes I ssh to seem to set the titlebar to the $PS1 prompt (or so it looks like). |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Wed Jun 23, 2004 8:14 pm Post subject: |
|
|
I've had a look at the set profile of the session that prints to the title bar, but can see no variable available that I think should be changed.
It makes mention of:
Code: |
SSH_CLIENT
SSH_CONNECTION
SSH_TTY
|
But nothing else. |
|
Back to top |
|
|
|