Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

known_hosts file

I use Linux on my home machine and playing around with servers trying to learn the workings of the different OS is fun. But every time I install an OS and go to login with my terminal I have to delete the old entry from my known_hosts file.

Is there anyway to not have the server listed in the file?

Comments

  • The ssh-keys are usually stored there.. I honestly don't know what you are doing lol

  • @infected said:
    The ssh-keys are usually stored there.. I honestly don't know what you are doing lol

    I understand but if I install a new OS on the IP when I go to login I cant until I delete the old entry from the file.

  • Can you post your output?

    Or do you mean the rsa-fingerprint message

    The authenticity of host '111.222.333.444 (111.222.333.444)' can't be established.
    RSA key fingerprint is f3:cf:58:ae:71:0b:c8:04:6f:34:a3:b2:e4:1e:0c:8b.
    Are you sure you want to continue connecting (yes/no)? >

    This one comes every first login from the ip/host.

  • or just edit the sshd_config and add the following:

    Host 192.168.0.*

    StrictHostKeyChecking no
    UserKnownHostsFile=/dev/null>

    replace host with ur real network address

  • Host 192.168.0.*
    StrictHostKeyChecking no
    UserKnownHostsFile=/dev/null

    soz cant edit my post for fucks sake lOL

    Thanked by 1solarman
  • Thanks @kcaj @infected thats what I needed to know :)

Sign In or Register to comment.