mina-deploy / mina

Blazing fast deployer and server automation tool
https://rubygems.org/gems/mina
Other
4.34k stars 491 forks source link

remote: Repository not found. fatal: Authentication failed for 'https://:@github.com/usre_name/repo.git/' #649

Closed SanjayYadav90 closed 4 years ago

SanjayYadav90 commented 4 years ago

Deploy with private git repository giving error whereas with public repository working fine.

Here is the error- fatal: Authentication failed for 'https://:@github.com/usre_name/repo.git/'

I am using mina to deploy rails(5) application, here is my system details-

About your application's environment
Rails version             5.2.3
Ruby version              2.6.3-p62 (x86_64-linux)
RubyGems version          3.0.4
Rack version              2.0.7
JavaScript Runtime        Node.js (V8)

I also provided credential on prompt as-


--- Please authenticate yourself!

Enter username for the code source repository: 
Enter password for user [] :

Thanks!

Default selected Branch for deployment is -> 
------------------------------------------------
master

The moment I change my git repository to public it work well. But noting working, I am stuck from few days. Hope for support on the same.

NBuhinicek commented 4 years ago

Hey, try setting your repository with an ssh url, not with the https one