Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[CLOSED] how to identify different ssh sessions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Wed Jun 23, 2004 7:06 pm    Post subject: [CLOSED] how to identify different ssh sessions Reply with quote

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
View user's profile Send private message
bone
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 255
Location: Midwest, USA

PostPosted: Wed Jun 23, 2004 7:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Wed Jun 23, 2004 7:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
bone
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 255
Location: Midwest, USA

PostPosted: Wed Jun 23, 2004 7:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Wed Jun 23, 2004 8:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum