Deleting from .ssh/known_hosts
Daniele Santi
daniele at santi.vr.it
Fri Jan 26 15:55:57 UTC 2007
Hi,
> The fix, of course, would be to let ssh create a new fingerprint. To do that,
> I need to delete the fingerprint for the old host. As the host names aren't
> in clear text, I have no idea how to go about this. I'm sure it's easy, but
> I've looked in the man page, and it isn't obviously documented.
when ssh tells you the fingerprint has changed, it should tell you the
line which contains the fingerprint, then you could do
vi +line_number ~/.ssh/known_hosts
and then issue
dd
to delete the "offending" line.
cheers
--
( (
)\ ) ) ) )\ ) ) (
(()/( ( /( ) ( /( ( (()/( ( ( /( )\
/(_)))\()) ( /( )\()) ))\ /(_)))\ ( )\()) ( ((_)(
(_)) ((_)\ )(_))(_))/ /((_) (_)) ((_) )\ (_))/ )\ _ )\
/ __|| |(_)((_)_ | |_ (_)) | _ \ (_)((_)| |_ ((_)| |((_)
\__ \| / / / _` || _|/ -_) | _/ | |(_-<| _|/ _ \| |(_-<
|___/|_\_\ \__,_| \__|\___| |_| |_|/__/ \__|\___/|_|/__/
-- Punk Posers
---------------------------------------------------------
() ascii ribbon campaign - against html mail
/\ - against microsoft attachments
---------------------------------------------------------
More information about the ubuntu-users
mailing list