[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: WHAT KIND OF SH*T IS THIS: telnet and ssh
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: WHAT KIND OF SH*T IS THIS: telnet and ssh
- From: Han Boetes <han_(_at_)_mijncomputer_(_dot_)_nl>
- Date: Fri, 18 Feb 2005 02:32:17 +0100
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org
Kent R. Spillner wrote:
> Fafa Diliha Romanova wrote:
> | whenever i telnet or ssh to something that's offline, i get
> | e.g.: ssh: hostname.domain.com: hostname nor servname
> | provided, or not known
> This is caused by ssh being slow to initialize; the in-kernel
> DNS resolver errors out on hostname.domain.com before userland
> ssh even finishes loading. The solution is to copy ssh into
> kernel-space so it gets pre-loaded on boot:
> $ sudo cat `which ssh` >> /bsd
I'm sorry, but you are terribly wrong here.
Everyone knows of course that sudo can't get through the pipes. So
if you want to make this excelent suggestion work you have to use:
sudo sh -c "cat `which ssh` >> /bsd"
As is explained in the sudo manpage.
Visit your host, monkey.org