i have private repositories on bitbucket with my modules which are used in Magento2. All was installed using composer.
In ~/.ssh/config i have:
Host bitbucket.org
IdentityFile ~/.ssh/bitbucket_id_rsa
IdentitiesOnly yes
and in bitbucket_id_rsa is stored key.
My composer.json file under Magento installation looks like this:
"require": { "magento/product-community-edition": "2.3.4.0", "composer/composer": "@alpha", "MYREPO/MYPROJECT": "@dev", ... } ... "minimum-stability": "dev", ... "repositories": [ { "type": "composer", "url": "https://repo.magento.com/" }, { "type": "vcs", "url": "git@bitbucket.org:MYREPO/MYPROJECT.git" }, ... ]
Everything is working ok with this configuration, i update module in bitbucket and with composer update i will then update it in Magento.
But now if i want to use also some modules from Magento Marketplace. So in Extension Manager i enter my private and public key from my Magento Marketplace account and i get error in Magento:
Command "show" failed: In Git.php line 381: Failed to execute git clone --mirror 'git@bitbucket.org:MYREPO/MYPROJECT.git' '/var/www/vhosts/MYSITE/htdocs/var/composer_ho me/cache/vcs/git-bitbucket.org-MYREPO_MYPROJECT.git/' Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. show [--all] [-i|--installed] [-p|--platform] [-a|--available] [-s|--self] [-N|--name-only] [-P|--path] [-t|--tree] [-l|--latest] [-o|--outdated] [--ignore IGNORE] [-m|--minor-only] [-D|--direct] [--strict] [-f|--format FORMAT] [--] [ []]
So it looks like its trying to use those entered private and public keys from Magento Marketplace and access my bitbucket private repos with them ?
Or is there some another issue ?
Did anybody have similar problem?
Thanks
Hello @michal_bnet
Please refer https://devdocs.magento.com/guides/v2.3/install-gde/prereq/dev_install.html#edit-authjson-file
Hope it helps.
hi sanjay
i checked your link to documentation
I tried to create Personal Access Token on Github, but it didnt help
why i need to create Github Personal Access Token ?
My modules are on Bitbucket.
So i guess i need to create Personal Access Token on Bitbucket ?