[wplug] ssh another computer by alias doen't work
Mike Procario
lists at procario.org
Wed Sep 29 16:22:16 EDT 2004
On Wed, Sep 29, 2004 at 01:10:02PM -0700, Deliang Shi wrote:
> Have two computers connected by DSL router and want
> them to know each other by alias.
> One was assigned the name "element" by modifying
> /etc/hosts and /etc/sysconfig/network
> [root at element home]# cat /etc/hosts
> # Do not remove the following line, or various
> programs
> # that require network functionality will fail.
> 127.0.0.1 localhost.localdomain
> localhost
> 127.0.0.1 element
> [root at element home]# cat /etc/sysconfig/network
> NETWORKING=yes
> HOSTNAME=element
> The other was assigned name "discrete" with similar
> procedure.
>
> They use the alias in the terminal. But I can't ssh
> one from the other one by alias.
> [root at element home]# ssh discrete
> ssh: discrete: Name or service not known
>
> ssh by the ip address is OK.
> [root at element home]# ssh 192.168.2.3
> root at 192.168.2.3's password:
> [root at discrete root]#
>
> What more need I do to enable ssh by alias?
>
> Thanks for any suggestion
Is discrete's IP address and name in element's /etc/hosts file and
vice versa?
--
Mike Procario
"Another casualty of applied metaphysics" -Calvin and Hobbes
More information about the wplug
mailing list