To get OAuth2 access token simply do
curl https://login.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=myclientid" -d "client_secret=myclientsecret" -d "
[email protected]" -d "password=mypassword123456"
Y...