I'm working for a company that involves sshing into several different devices with the same IP address and hostname, but unique private keys for ssh. What I'm trying to figure out is a way to disable the strict host key checking refusing to let me connect to a new device, but still warning me that it's a new device.
I know I can set StrictHostKeyChecking yes in .ssh/config, but with this alone it refuses to let me enter a username and password. When also adding UserKnownHostsFile /dev/null it lets me connect, but completely disables the checking, which isn't what I want either!
How can I set up ssh to warn me when connecting to new devices, but still allow me to connect to them? The password is not consistent between all devices either, so I can't set it to automatically enter it for me.
Ultimately I know the chances of a MITM attack when specifically connecting to our company's devices internally is minuscule, but I still like the confirmation that you are connecting to a known device.