![]() ![]() Simply run ssh-keygen and specify a new key name with the -f flag. ![]() You’ll need one to do this in the first place, and doing this is pretty easy. ![]() This probably isn’t what you want if you’re here reading this, so to change it, you’ll need to edit SSH’s configuration-not Git’s. It does this silently, so you may not be aware of the commands it’s running, but it uses ssh under the hood.īecause it uses your default ssh command, it will act like you just ran it yourself, and use your default key in ~/.ssh/id_rsa. Git doesn’t just use your private key to authenticate when you use SSH instead of HTTPS-it actually establishes a real SSH connection to the remote server. By editing your SSH config though, you can connect to multiple Git repositories with different keys. Unlike a password however, it’s harder to change your SSH key, or manage multiple keys. Using SSH keys is more secure than passwords, and that applies to Git as well. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |