Hello Rickard,

I have added the -p 987 (my port is 971 and used same) but i am still 
getting the same error and seems that it still trying to connect over port 
number 22.

Please refer the below logs:

*Error:*

==> digitalocean: Uploading /root/packer/config => /home/deploy/.ssh/
1 items:  37 B / 37 B 
[=================================================================================================================================================================================]
 
1s
==> digitalocean: Provisioning with shell script: ch.sh
==> digitalocean: Provisioning with shell script: /tmp/packer-shell441758894
    digitalocean: SSH_CLIENT='1.2.3.4 54238 22'
    digitalocean: SSH_CONNECTION='1.2.3.4 54238 2.3.4.5 22'
    digitalocean: Could not open a connection to your authentication agent.


On Thursday, January 3, 2019 at 10:54:40 AM UTC+5:30, Tekchand Dagar wrote:
>
> Hello Vincent,
>
> Thank you for your response.
>
> I have added the -p 987 (my port is 971 and used same) but i am still 
> getting the same error. 
>
> *Error:*
>
> ==> digitalocean: Uploading /root/packer/config => /home/deploy/.ssh/
> 1 items:  37 B / 37 B 
> [=================================================================================================================================================================================]
>  
> 1s
> ==> digitalocean: Provisioning with shell script: ch.sh
> ==> digitalocean: Provisioning with shell script: 
> /tmp/packer-shell441758894
>     digitalocean: SSH_CLIENT='1.2.3.4 54238 22'
>     digitalocean: SSH_CONNECTION='1.2.3.4 54238 2.3.4.5 22'
>     digitalocean: Could not open a connection to your authentication agent.
>
> Please help me to fix this issue. I am really run out of ideas.
>
> Really appreciated your help and guidance.
>
>
>
> On Wednesday, January 2, 2019 at 11:02:52 PM UTC+5:30, Vincent Rubiolo 
> wrote:
>>
>> Hi  Tekchand,
>>
>> Rickard already provided a lot of useful information about the SSH 
>> connection. On my end, I wanted to ask: could this be a file permission 
>> issue?
>> I see
>>
>>> *fatal: could not create work tree dir 'test-packr-clone': Permission 
>>> denied"*
>>
>> which hints to me at a file permission problem when creating the clone 
>> (i.e during sth like 'mkdir').
>>
>> Which directory are you calling the 'git clone' command from (this is not 
>> obvious from your Playbook)? I'd check you have write rights to that 
>> directory with your user or switch to one where you do.
>>
>> HTH,
>>
>> Vincent 
>>
>

-- 
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/mitchellh/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/8ca8dbb3-6e43-4bec-929d-127a3f94891b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to