Changing url of Git submodule fails

I have one submodule inside a project which I would also like to push automatically to staging. Now I made apropriate changes to the hook and also changed the authentication method from password to certificate of the submodule.

Unfortunatelly git refuses to make the change of the authentication method, despite the already changed url of the origin:

remote: /home/git/staging.git
remote: Cloning into 'MEW'...
remote: fatal: could not read Password for 'https://myname@bitbucket.org': No such device or address
remote: Clone of 'https://myname@bitbucket.org/demo/demo-mew.git' into submodule path 'MEW' failed

node1:/home/www/demo/MEW$ git remote -v
origin  git@bitbucket.org:demo/demo-mew.git (fetch)
origin  git@bitbucket.org:demo/demo-mew.gitdemo)

cat .git/config

...
[submodule "MEW"]
     url = git@bitbucket.org:demo/demo-mew.git
...

Is this a bug or do I need to change something else to make the change happen? Thank you in advance for any help.

Git Baby is a git and github fan, let's start git clone.