[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WHAT KIND OF SH*T IS THIS: telnet and ssh



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.



# Han



Visit your host, monkey.org