table of Contents
- P42-SSH password-free login
P42-SSH password-free login
Benefits: Eliminate the need to enter account passwords.
Limitations: only one account can be set to password-free login, but in the actual development process, a computer only logs in to one github account and only operates its own github account, so only one account can be configured SSH password-free login seems to have no effect.
cd ~ #进入用户家目录
rm -r .ssh #删除之前创建的ssh目录删掉
ssh-keygen -t rsa -C [要登陆的github邮箱账号] #一路回车使用
Click new ssh key. The
server side is set up, then return to the client for testing.
Back to the working area for testing.
vi huashanjianfa.txt
git commit -m "test ssh" huashanjianfa.txt
git remote -v
git remote add origin_ssh [github ssh link]
git remote -v
git push origin_ssh master