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, 4 years and 173 days ago. Viewed 1,638 times. #1
[edit] [rdf]
labels
attachments
(2014-06-26)

Problem

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

Solution

This removes the host id on line 3:

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

Discussion

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:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt