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.

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

1 Answer 1

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.

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

Not the answer you're looking for? Browse other questions tagged .