hostname of remote computer
- From: Seb <spluque@xxxxxxxxx>
- Date: Sun, 31 Oct 2010 13:57:22 -0500
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
- Follow-Ups:
- Re: hostname of remote computer
- From: Tom H
- Re: hostname of remote computer
- From: Camaleón
- Re: hostname of remote computer
- From: Klistvud
- Re: hostname of remote computer
- Prev by Date: Re: [OT] KMail - forwarding issues
- Next by Date: Re: install via own mirror (nfs)
- Previous by thread: Re: Debian VServer in Germany
- Next by thread: Re: hostname of remote computer
- Index(es):
Relevant Pages
|