For When You Can't Have The Real Thing
[ start | index | login ]
start > CentOS > 6 > ssh > Remove Host ID

Remove Host ID

Created by dave. Last edited by dave, 5 years and 287 days ago. Viewed 2,138 times. #1
[edit] [rdf]


Host-ID has changed and ssh is complaining about it.


This removes the host id on line 3:

$ sed -i 3d ~/.ssh/known_hosts


A one liner that is better than trim-ssh.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt