Re: Sed or awk: remove a line from a file
* John A. Sullivan III [100528 09:19 -0400]
> On Fri, 2010-05-28 at 14:45 +0200, François TOURDE wrote:
[...]
> >
> > Don't use sed nor awk...
> >
> > man ssh-keygen say:
> >
> > -R hostname
> > Removes all keys belonging to hostname from a known_hosts file. This option is useful to delete hashed
> > hosts (see the -H option above).
> >
> >
> Yes, exactly. We use that all the time for similar reasons. One caveat
> - if you use a non-standard port (which we regularly do for security
> with such a dangerous application), the host must be specified as
> [hostname]:port, e.g., ssh-keygen -R [comp1.mycompany.com]:222
How to remove _all_ ip's from hosts with a dynamic IP such as dyndns
hosts?
Elimar
--
>what IMHO then?
IMHO - Inhalation of a Multi-leafed Herbal Opiate ;)
--posting from alex in debian-user--
Reply to: