Kommentare zu: removing outdated ssh fingerprints from known_hosts with sed or … ssh-keygen http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/ Thu, 22 Oct 2015 22:23:33 +0000 hourly 1 https://wordpress.org/?v=4.4.1 Von: Chan http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/comment-page-1/#comment-86449 Thu, 22 Oct 2015 22:23:33 +0000 http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/#comment-86449 I have this file on the remote host as ~/bin/log#!/bin/bash -LOGFILE=“~/repo/log“if [ „$1“ ]; then grep „$1″ $LOGFILEelse echo -n ‚make entry ‚ read case $REPLY in “) cat $LOGFILE;; *) echo $(date ‚+%F %T‘) $REPLY >> $LOGFILE;; esfixieact 0Then, on each host I sit at, I havealias log=’ssh remote_host_address „bin/log“‚So if I don’t enter any text, I get the file’s contentsand if I do enter text it is time stamped and saved.If I type log „searchterm“ I get all the lines containing searchtermP.S. Too bad code can’t be offset to retain indentation

]]>
Von: removing outdated ssh-keys | dannyn08 http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/comment-page-1/#comment-86110 Tue, 19 May 2015 23:48:18 +0000 http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/#comment-86110 […] http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed… […]

]]>
Von: dave http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/comment-page-1/#comment-37401 Tue, 31 May 2011 06:06:49 +0000 http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/#comment-37401 BOSS. i usta hate purging the whole file. thank you sir.

]]>
Von: The Gripmaster http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/comment-page-1/#comment-36097 Mon, 09 May 2011 05:00:49 +0000 http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/#comment-36097 Thank a lot. I never knew there was a command like this, until one of my colleagues hinted about such a command and Google landed me on your page.

]]>
Von: Kenneth http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/comment-page-1/#comment-34298 Tue, 12 Apr 2011 17:32:34 +0000 http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/#comment-34298 Thanks! Your post was very useful.

]]>
Von: Thomas http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/comment-page-1/#comment-25971 Tue, 16 Nov 2010 01:53:49 +0000 http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/#comment-25971 Thank You it was getting complicated bouncing back to xp ptty, then back to Ubuntu Firewall builder! (Saving Grace) Thank You Jeeezzzzzz

]]>
Von: Alex http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/comment-page-1/#comment-22099 Thu, 03 Jun 2010 11:33:00 +0000 http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/#comment-22099 Nice idea.

I usually do a

„vi .ssh/known_hosts +46“

if I got the message. vi will jump to the line 46 already and I press dd, then save.

Alex

]]>
Von: Albert http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/comment-page-1/#comment-21920 Sat, 29 May 2010 01:33:08 +0000 http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/#comment-21920 If you using Openshh on Windows. The „know_host“ files is at:
C:\Document and Settings\“User“\.ssh
notice I put „User“ Where computer user should be.
once in „.ssh“ you will see „know_host“
you can open „know_host“ with Wordpad just right click ->open with ->choose „Wordpad“

]]>
Von: Minh Nguyen http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/comment-page-1/#comment-20196 Wed, 24 Mar 2010 14:50:28 +0000 http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/#comment-20196 wow.. this is great article.

Thanks a lot
-minh

]]>
Von: Carl http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/comment-page-1/#comment-18880 Mon, 15 Feb 2010 22:52:30 +0000 http://www.screenage.de/blog/2008/05/28/removing-outdated-ssh-fingerprints-from-known_hosts-with-sed-or-ssh-keygen/#comment-18880 Kudos for the use of sed! Some lightweight implementations of ssh like dropbear do not have utilities for key management, so the use of core-utils or busybox applets like sed are essential skills for many system administrators. Thanks for the article.

— Carl

]]>