Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change SSH password in Git [closed]

Tags:

git

ssh

Let's say my SSH username is mygituser and my password is mygitpass The new password should be mygitnewpass. How do I change my SSH password in Git?

like image 440
Chris Sim Avatar asked Jan 05 '12 09:01

Chris Sim


People also ask

How do I reset my SSH password in GitHub?

If you lose your SSH key passphrase, there's no way to recover it. You'll need to generate a brand new SSH keypair or switch to HTTPS cloning so you can use your GitHub password instead. If you lose your SSH key passphrase, there's no way to recover it.


2 Answers

I just had to log in using:

ssh my_user@ 

and write

passwd

so all you will do:

ssh [email protected]

passwd

mygitpass

mygitnewpass

mygitnewpass
like image 137
Chris Sim Avatar answered Oct 05 '22 15:10

Chris Sim


I don’t think that Git itself has anything like access control, or users and passwords. These have to do with the “transport layer” that you access your Git remote through. Most often Git uses SSH as a transport layer, so that you’ve got to have an SSH account on the machine hosting the remote and if you want to change your “Git password”, you really want to change your SSH password on that box (or the passphrase of your private key, as Sjoerd points out). In other words, the answer depends on how you access the Git remote.

like image 31
zoul Avatar answered Oct 04 '22 15:10

zoul