I've gotten my first Raspberry Pi to experiment with. While I learn about it, I'm also experimenting with different OSes, specifically the default with the GUI and the Lite without.
I've got them both set up to accept SSH connections, but every time I swap the cards, I have to go into /.ssh/known_hosts (on macOS) and remove the fingerprint entry for the other card because, probably given the single MAC address for computer, the router is giving it the same IP number.
It's not a huge problem, and hopefully soon I'll be swapping the cards much less, but I'd like to know if there's any way say to SSH, "I don't ever care of the fingerprint of this IP address changes," or perhaps some way to store two fingerprints for the IP address?
config. I've edited the question. Thanks for point that out. – Chuck Nov 08 '21 at 19:45The host identification used on a system connected to the Pi is a thumbnail derived from /etc/ssh on the Pi.
This approach works well on conventional computers, where the host keys are stored on non-removable storage. Unfortunately Pi users swap SD Cards, and thus change the host identity.
There are 2 ways to avoid this; ignore host key checking or ensure all SD Cards have the same host key.
– Milliways Nov 08 '21 at 22:48~/.ssh/known_hostson the Mac, just as this answer describes. – Ilmari Karonen Nov 09 '21 at 00:40