[PLUG] /etc/resolv.conf and DHCP

Keith Morse kgmorse at mpcu.com
Thu Aug 21 15:28:12 UTC 2003


On Thu, 21 Aug 2003, Keith wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> 
> On Thu, 21 Aug 2003, Steven Raymond wrote:
> 
> >
> > So I like to be able to go "ssh hostname" instead of "ssh
> > hostname.domain.com".  If I edit /etc/resolv.conf with "search domain1.com
> > domain2.com" then it tries all of those in order and saves me the trouble
> > of typing the domain name.
> 
>  If you running it in a bash shell you could
> create an alias
> alias ssh-host='ssh hostname.domain.com'
> then to connect type
> $ ssh-host
> or in /etc/hosts
> ip.number.here   domain.name.here   shortcutname
> 65.213.217.241   nsa.gov            nsa
> then to connect type
> $ ssh nsa


Catchy first name, by the way.  I also seem to remember that one can use a 
local ssh_config to do interesting things like this.  I haven't tried it, 
yet. I'll have to consult the ssh book when I get home tonight.








More information about the PLUG mailing list