[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SOLVED] Re: Subject: network-console installation and ssh keys

Quoting Christian Seiler (christian@iwakd.de):
> - Host temporarily has a different key because of a running
>   installation (or rescue CD or so), but will have the right
>   keys again in the future. I have the following alias defined:
>     alias sshnv='ssh -o GlobalKnownHostsFile=/dev/null
>                      -o UserKnownHostsFile=/dev/null'
>   (Just one line, but my mail client wants to wrap.)
>   This allows me to do sshnv user@host, but the temporary key will
>   not be remembered (I still have to accept it though).

Perfect, thanks. I now have "installer-on" which runs
ssh -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null installer@"$1"
for my particular case of running the installer.

>   This is also useful if I don't want to remember the key even if
>   it's not already in the known_hosts file.
> - Host will permanently have a new key.
>     ssh-keygen -R hostname
>   This will remove all keys for a given host from the known_hosts
>   file, and then a new key can be accepted for that host, which will
>   be stored permanently.

And thanks for others' similar suggestions, but I prefer not having
to create a user configuration file.


Reply to: