Davinder's blog

Unable to negotiate with no matching key exchange method found.

I just created a sandbox project on drupal.org. I was getting following error.

Unable to negotiate with no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
fatal: Could not read from remote repository.

How to resolve this: please run following command to overcome this error.

export GIT_SSH_COMMAND='ssh -o KexAlgorithms=+diffie-hellman-group1-sha1'

Happy developing.

Install Drupal Commerce on Drupal 8

I am just done with Drupal Commerce Installation on drupal 8.
I followed these steps:
1.Point to Drupal 8 root folder

cd /var/www/html/D8

2.Install commerce module

drush dl commerce

It has following dependencies:

drush dl entity
drush dl inline_entity_form
drush dl profile
drush dl address
drush dl state_machine
cd modules/commerce

9. Now install dependencies with composer install.

Recovering admin password on Drupal 8

Want to recover admin password on Drupal 8 on your local, if your local email server is not up.
I tried to do this with DrupalConsole as follow:

cd /var/www/drupal
drupal user:password:reset

Drupal is just an alias to run DrupalConsole.
It will ask for uid for user in my case for first user as admin it was 1.
Then type your new password.

That is all to recover password in Drupal 8.


Forgot Drupal admin password on Local

Suppose you are working on local PC having LAMP and forgot drupal admin password although you don't have local email client working on your system.

So you are unable to recover the drupal admin password.

Then got to drupal root path

 cd /var/www/drupal 
 ./scripts/password-hash.sh yournewpassword 

it will generate key like this

password: yournewpassword hash: $S$DegAWQYpYTOHmADPhoFXEUJkf8iFuMHOHPq3yuGPPjfnVWa7wMge 

Copy only hash part that is


Subscribe to RSS - Davinder's blog