Consider this scenario: my target’s SSH key changes often (but login and password remains the same). Why it is so is another question, let’s ignore that for now.
When deploying to a target whose key has changed, the sequence goes like this:
- Start Deploy.
- Handshaking (20-30 second before timing out).
- Prompt appears asking if we want to save the new key.
- Transferring file.
For item #3, first of all, the prompt appears in the background, so user is unaware of it and is waiting minutes figuring out what is going on (can it be in the foreground?). Next, I have found the “SuppressKeyMismatchWarning” XML tag, so that helps a bit.
For #2, is there a way to specify that “I know the key will be different for this target, just always accept it immediately”? Or is the 30 second delay part of the SSH protocol? Is there is a way to disable strict key checking?