How to get a different name than "localhost" on remote desktop

  • Thread starter Thread starter Marc Reinig
  • Start date Start date
M

Marc Reinig

I use the following to connect to my remote hosts from outside the local
network, so I can use remote desktop:

ssh -L 5900X:HostName.DomainName.org:3389 (e-mail address removed)

It works fine for simultaneous multiple hosts. However, they all show
"localhost" at the top of the remote desktop window, which can lead to
confusion. When I am logged on locally, using remote desktop, they show the
actual host name. How can I change the heading to give the host's name when
I am outside the network?

Thanks in advance,

-Marco
________________________________________________________________
Marc Reinig Phone: (831) 459-4362
Laboratory for Adaptive Optics Fax: (831) 459-5717
UCO/Lick Observatory Email: (e-mail address removed)
University of California, Santa Cruz
1156 High Street
Santa Cruz, CA 95064
 
I use the following to connect to my remote hosts from outside the local
network, so I can use remote desktop:

ssh -L 5900X:HostName.DomainName.org:3389 (e-mail address removed)

It works fine for simultaneous multiple hosts. However, they all show
"localhost" at the top of the remote desktop window, which can lead to
confusion. When I am logged on locally, using remote desktop, they show the
actual host name. How can I change the heading to give the host's name when
I am outside the network?

I'm not familiar with the software you are using (I use Putty), but
there are two possible options for you. One thing is to add entries
to your HOSTS file and then you can connect to the computer by 'name'.
The HOSTS file would look something like this:

127.0.0.1 LocalHost
127.0.0.2 RemoteServer
127.0.0.3 RemotePC
etc.

All of our servers end with a unique number. Another way I keep track
of what machine I'm on is to assign the local port to match that
number. So, I'll use port 44 locally when I connect to Server44. For
each server there are custom .RDP files that already have the proper
ports assigned. So, the title bar will look like 127.0.0.44:44 which
makes it clear which server we're on, to all of us that use this
technique.

Fortunately, all of the servers remotable via SSH have numbers that
match a common port such as 80 or 22.

HTH,
Clay Calvert
(e-mail address removed)
Replace "Z" with "L"
 
Fortunately, all of the servers remotable via SSH have numbers that
match a common port such as 80 or 22.

The above should be "... do NOT match a common port..."


Clay Calvert
(e-mail address removed)
Replace "Z" with "L"
 
Back
Top