My First Post      My Facebook Profile      My MeOnShow Profile      W3LC Facebook Page      Learners Consortium Group      Job Portal      Shopping @Yeyhi.com

Pages










Showing posts with label credential. Show all posts
Showing posts with label credential. Show all posts

Tuesday, June 30, 2020

aws_key_gen login for getting AWS Keys locally on command line

If you or your team is working with AWS, you might know how important it is to get the keys while dev or debugging the code.


Command is:
$ ~/ECPCP/aws_key_gen login



It will then promt you to enter your login credentials into corporate account:
Enter your password for MAJFTECH\mfaiz:

Duo two-factor login for MAJFTECH\mfaiz



Then it will ask you to select the method for verification:

For eg. Enter a passcode or select from one of the following options:

1. Duo Push to Android (+XX XXXXX X8847)
2. Phone Call to Android (+XX XXXXX X8847)
3. Duo Push to Android (+XX XXXXX X7658)
4. Phone Call to Android (+XX XXXXX X7658)

Passcode or option (1-4): 4
Dialing +XX XXXXX X7658...
Answered. Press any key on your phone to log in.
Success. Logging you in...



Then it will ask you to choose one of the many AWS accounts that your organization might be using:

Eg. Available AWS Accounts
  [ 1] majf-product--integration-test (12344567)
  [ 2] w3lc-test (123444567)
  [ 3] w3lc-techp-test (162344567)
  [ 4] majftech-lab (982344567)

Please choose an AWS Account: 3



Then it asks you to chosse the role :
Available AWS IAM Roles in w3lc-techp-test (162344567)
  [ 1] ReadOnly (arn:aws:iam:: 162344567:role/ReadOnly)
  [ 2] User (arn:aws:iam:: 162344567:role/User)
Please choose an AWS IAM Role: 2



Finally you get the keys as follows:
Generated new temporary access keys
Role:        arn:aws:iam::132343860784:role/User
Expiration:  Tue Jun 30 08:24:55 UTC 2020 (1 hour from now)


Cheers :)

Wednesday, May 13, 2020

How to update git password on terminal: Command line utility to reset github password / access credentials

On macOS, you can use

git config --global credential.helper osxkeychain

A username and password prompt will appear on your next Git action (pull, clone, push, etc.).
Eg: If you do git clone: gttps://mfaiz@www.repository.git .

As soon as you press Enter key, you will be prompted for a password.
You can use the updated password here. And, you will be able to access and password also gets updated automatically!


For Windows, it's the same command with a different argument:

git config --global credential.helper wincred


Isn't this simple :)
Cheers.

Tuesday, May 7, 2019

Git password expired. How to reset git authentication?


Sometimes, when you try to git clone the git repository or do any push or pull, it says:
remote: HTTP Basic: Access denied  fatal: Authentication failed for "~~yourRepositoryName"

The simplest reason is that your password is expired and/or changed externally. And, you need to change it for git to understand.

So, the question comes that How can you re-access your git repository or simpley put - How will you reset the password credentials.

Solution: Cheers, its simple.

Command:
git config --system --unset credential.helper

This will start resetting your credential manager stored wrong authentication password. Will ask for new password.
And, that's it. Enjoy.



---- I have found another method and updating it here on 30 January, 2020 ----


To fix this on macOS, you can use
git config --global credential.helper osxkeychain
A username and password prompt will appear with your next Git action (pull, clone, push, etc.).
For Windows, it's the same command with a different argument:
git config --global credential.helper wincred
The above trick resets the password stored. After this when you git pull, it will ask for password.



:)