I have created the ssh-key on my terminal and used it under
cloud-init/user-data file.
I am calling ssh-username and ssh-password for logging in to the machine.
Could you please share your sample code with me, where you are giving the
ssh key path?

On Tue, Oct 4, 2022 at 3:27 AM Mudit <[email protected]> wrote:

> Please check the path of the ssh keys.We had similar issue and we resolved
> with
> Giving correct permission for the script which was pulling ssh keys from
> GCP storage
> Verify the path of the ssh keys
>
>
> On Tue, 4 Oct, 2022, 10:36 am Pravin Kumar, <[email protected]>
> wrote:
>
>> Please check the ssh user and password as it is not able to authenticate
>> the user, meanwhile you can share the json file content here
>>
>> On Tuesday, October 4, 2022 at 7:26:30 AM UTC+5:30 [email protected]
>> wrote:
>>
>>> Hi Team,
>>>
>>> Can anyone help me with the issue with hcpacker:
>>>
>>> ==> vsphere-iso.linux-ubuntu-server: Waiting for SSH to become
>>> available...
>>> ==> vsphere-iso.linux-ubuntu-server: Error waiting for SSH: Packer
>>> experienced an authentication error when trying to connect via SSH. This
>>> can happen if your username/password are wrong. You may want to
>>> double-check your credentials as part of your debugging process. original
>>> error: ssh: handshake failed: ssh: unable to authenticate, attempted
>>> methods [none password], no supported methods remain
>>> ==> vsphere-iso.linux-ubuntu-server: Packer experienced an
>>> authentication error when trying to connect via SSH. This can happen if
>>> your username/password are wrong. You may want to double-check your
>>> credentials as part of your debugging process. original error: ssh:
>>> handshake failed: ssh: unable to authenticate, attempted methods [none
>>> password], no supported methods remain
>>> ==> vsphere-iso.linux-ubuntu-server: Step "StepConnect" failed
>>>
>>> Regards,
>>> Sonali
>>>
>> --
>> This mailing list is governed under the HashiCorp Community Guidelines -
>> https://www.hashicorp.com/community-guidelines.html. Behavior in
>> violation of those guidelines may result in your removal from this mailing
>> list.
>>
>> GitHub Issues: https://github.com/hashicorp/packer/issues
>> IRC: #packer-tool on Freenode
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Packer" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/packer-tool/71d45d02-54ee-4b11-a0c7-1d495af50529n%40googlegroups.com
>> <https://groups.google.com/d/msgid/packer-tool/71d45d02-54ee-4b11-a0c7-1d495af50529n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/hashicorp/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/CANN12EPMByhaBhKt5UX5cXtBGKVqzwgW46Zxu7Pi5rx74eto2w%40mail.gmail.com
> <https://groups.google.com/d/msgid/packer-tool/CANN12EPMByhaBhKt5UX5cXtBGKVqzwgW46Zxu7Pi5rx74eto2w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAMHSVAg-s7MX670WAbUNgB%2BwWDSahFTUAPAMrBjT7aYynmQXrA%40mail.gmail.com.

Reply via email to