knife bootstrap aksing password, even if -P option is not provided

knife bootstrap aksing password, even if -P option is not provided.
eg.
knife bootstrap -U test1 --sudo 10.0.80.1 -F text -N ABCNode --bootstrap-template ~/abc/templates/chef-client-install.erb -E ABCEnv

it prompts:
Connecting to 10.0.80.1
WARNING: Failed to authenticate test1 to 10.0.80.1 - trying password auth
Enter password for test1@10.0.80.1.

Connecting to 10.0.80.1
The authenticity of host '10.0.80.1 ()' can't be established.
fingerprint is SHA256:w+YuqafdJJMTFrrZjeZzEQZiZyDs7f0q0srhxYsdfssfd.

Are you sure you want to continue connecting
? (Y/N) Y
Connecting to 10.0.80.1
WARN: [SSH] connection failed, terminating (#<Net::SSH::AuthenticationFailed: Authentication failed for user test1@10.0.80.1>)
ERROR: Train::Transports::SSHFailed: SSH session could not be established

For more details, please review the bug raised in github

Hi Yogesh

Under the hood, knife bootstrap is using ssh to connect to the remote host you are targeting for bootstrap. ssh will try various authentication methods depending on the configuration of sshd on the remote host. in this case it is asking for a password because it hasn't found a key to use, either via the command line or via a helper like ssh-agent.