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

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

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

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

Are you sure you want to continue connecting
? (Y/N) Y
Connecting to
WARN: [SSH] connection failed, terminating (#<Net::SSH::AuthenticationFailed: Authentication failed for user test1@>)
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.