0

Should be able to ssh from one VM to another or more other machines, but should not prompt for public key authentication. How to cover the prompt in automation using a shell script.

marked as duplicate by Kusalananda linux Apr 12 '18 at 9:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    ssh never prompts for public key authentication. It prompts for password authentication. – Kusalananda Apr 12 '18 at 9:36
0

As @Kusalananda commented, SSH doesn't ask for "pubkey authentication". If you're using pubkey authentication, it asks for the password that protects the private key. In this case, you should remove the passphrase from the keys -- it's probably the simplest solution.

  • Or add the key to an SSH agent. (this question is likely a dupe, I'm looking into it now) – Kusalananda Apr 12 '18 at 9:47

Not the answer you're looking for? Browse other questions tagged or ask your own question.