Discuss / Git / clone pull push时每次都的输入服务器密码

clone pull push时每次都的输入服务器密码

Topic source

$ git clone git@192.168.0.111:MysherCode/sample.git

Cloning into 'sample'...

git@192.168.0.111's password:

每次clone或者push,pull都得输入一次服务器密码,功能正常,但是觉得有点麻烦,不知该如何解决

先用sudo passwd -d MysherCode删除用户密码,

然后在ssh的配置文件中将PermitEmptyPasswords改为yes就可以了


  • 1

Reply