Re: How to remove old entries from known_hosts?

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

 



On Thu, Feb 15, 2024 at 12:06:55AM +1100, Darren Tucker wrote:
> On Wed, 14 Feb 2024 at 22:52, Chris Green <cl@xxxxxxxx> wrote:
> > Is there any way to remove old entries from the known_hosts file? With
> > the hashed 'names' one can't easily see which entries are which.
> 
> ssh-keygen -R.  From the man page:
> 
>      -R hostname | [hostname]:port
>              Removes all keys belonging to the specified hostname (with op-
>              tional port number) from a known_hosts file.  This option is use-
>              ful to delete hashed hosts (see the -H option above).
> 
Yes, thank you.

-- 
Chris Green
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



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

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux