Re: Deleting from .ssh/known_hosts



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
---------------------------------------------------------

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Where is my Skype password stored.
    ... to your account, it triggers the newer complexity requirement. ... Any program running on your host can generate a fingerprint based on ... a unique "device" connecting to their service and for just one account. ...
    (microsoft.public.windowsxp.general)
  • Re: Need some education: Man-in-the-Middle Attacks
    ... The host key fingerprint isn't actually ... public portion of the host key and the client ...
    (SSH)
  • Re: ssh RSA key fingerprint differs from ssh_host_key.pub
    ... when asked to verify the identity of the remote host. ... > fingerprint and the file contents to be the same? ... > Richard Silverman ...
    (comp.security.ssh)
  • Re: spoof rsa fingerprint
    ... submit their password to a rogue host. ... In answer to the original question, though, spoofing the fingerprint ... of the RSA keys. ...
    (Fedora)
  • RE: Verifying the host fingerprint
    ... -l Show fingerprint of specified public key file. ... The authenticity of host 'localhost ' can't be established. ... Permanently added 'localhost' (RSA) to the list of known hosts. ...
    (SSH)