[wplug] ssh another computer by alias doen't work

Deliang Shi sdliang02 at yahoo.com
Wed Sep 29 17:32:54 EDT 2004


Thanks a lot for the help. Now it works just as what
you guys said.

--- "Ryan W. Frenz" <rfrenz at gmail.com> wrote:

> Put an entry for discrete in element's /etc/hosts
> file, and vice
> versa, i.e element's /etc/hosts would look like:
> 
> 127.0.0.1 localhost element
> 192.168.x.y discrete
> 
> where x and y are the last two octets of discrete's
> LAN address.
> 
> Ryan
> 
> 
> On Wed, 29 Sep 2004 13:10:02 -0700 (PDT), Deliang
> Shi
> <sdliang02 at yahoo.com> 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 suggestions.
> > 
> > __________________________________
> > Do you Yahoo!?
> > New and Improved Yahoo! Mail - 100MB free storage!
> > http://promotions.yahoo.com/new_mail
> > _______________________________________________
> > wplug mailing list
> > wplug at wplug.org
> > http://www.wplug.org/mailman/listinfo/wplug
> > 
> 
> 
> 
> -- 
> Ryan W. Frenz
> rfrenz at gmail.com
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
> 



		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


More information about the wplug mailing list