hostname of remote computer



Hi,

I use SSH to connect to a laptop computer that is in an institutional
network. I would like to set an entry for it in my local /etc/hosts, so
that I don't have to type the IP address every time I want to connect to
is and simply use an alias. As per the man page, /etc/hosts has:

IP_address canonical_hostname [aliases]

To get the canonical_hostname I thought I'd easily get it by typing
"dnshostname" when logged into the remote laptop, but that returns
nothing, and "domainname" returns '(none)'. How should this
canonical_hostname be specified in this case?

Cheers,

--
Seb


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/87ocaa8a25.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxxx



Relevant Pages

  • Re: hostname of remote computer
    ... I use SSH to connect to a laptop computer that is in an institutional ... network. ... I would like to set an entry for it in my local /etc/hosts, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: hostname of remote computer
    ... I use SSH to connect to a laptop computer that is in an institutional ...  I would like to set an entry for it in my local /etc/hosts, ... I've never seen "dnshostname" before. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • RE: Computer on Network now can see itself and others
    ... turning off simple file sharing. ... Now, however, when I go to My Network Places / Microsoft Windows ... Networks and select my network name, I cannot see the laptop computer from ... I tried turning the Windows XP firewall off on both computers, ...
    (microsoft.public.windowsxp.network_web)
  • RE: Computer on Network Cant See Itself
    ... It's bad enough Microsoft creates these problems. ... Now, however, when I go to My Network Places / Microsoft Windows ... Networks and select my network name, I cannot see the laptop computer from ... either the desktop computer or the laptop computer itself. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Computer on Network Cant See Itself
    ... Now, however, when I go to My Network Places / Microsoft Windows ... Networks and select my network name, I cannot see the laptop computer from ... either the desktop computer or the laptop computer itself. ... problem persists. ...
    (microsoft.public.windowsxp.network_web)