WebApr 14, 2024 · 1.一般是我们新电脑,因为需要ssh git 所以没有, 服务器上的 Git - 生成 SSH 公钥 2. windows cmd 模式:ssh-keygen -t rsa -C "[email protected]" [email protected] 这个是你自定义的 , 这里面有一个坑点:就是让你输入 ... WebJan 22, 2024 · To set up the git-agent, run eval "$ (ssh-agent -s)" into the terminal. Followed by ssh-add ~/.ssh/id_rsa After completing all these steps, you're ready to commit changes and push your work to the remote repo. Share Improve this answer Follow answered Sep 4, 2024 at 15:33 Acesif 71 1 4 1 thank you, you saved a new developer's day! – aanhlle
How to Get and Configure Your Git and GitHub SSH Keys
WebWhile you're in Git Bash, you should mkdir .ssh. After you have the home directory, and a .ssh folder under that, you want to open PuTTYgen and open the key (.ppk file) you have … WebAug 2, 2012 · Open git-bash and run the same command with the addition of -C since you're commenting in your email address: ssh-keygen -t rsa -C "[email protected]" command. That's it. git-bash should have been installed when you installed git. If you can't find it you can check C:\Program Files\Git\Git Bash jesus heals with mud
git - ssh-keygen
WebSep 11, 2024 · I don't think there is any specific config in gitbash itself. You have to put the key in the default location ~\.ssh/id_rsa and it will be used. If you need to have it somewhere else you could do so with a config file same as on Linux ~/.ssh/config host example.com HostName example.com IdentityFile ~/.ssh/id_rsa User git WebJan 10, 2024 · Load the private key with PuTTYgen, go to Conversions menu and select Export OpenSSH key . Save the private key file and then follow the steps to set up non-default keys . Copy your public key directly … WebApr 14, 2024 · 1491. Once you have started the SSH agent with: eval $ (ssh-agent) Do either: To add your private key to it: ssh-add. This will ask you your passphrase just once, and then you should be allowed to push, provided that you uploaded the public key to Github. To add and save your key permanently on macOS: ssh-add -K. inspiration boat hire gold coast