I have tried a lot for install sample data in Magento 2. I am trying a new method, but still not getting success.
sudo php bin/magento sampledata:deploy
After apply this code i am getting this
./composer.json has been updated
Loading composer repositories with package information
Authentication required (repo.magento.com):
Username:
I dont know which username and password is asking here. I have generate token in my magento account. But what to do next and which user name and password to give there.