git通过ssh管理用户权限
git通过ssh管理用户权限
git通过ssh管理用户权限
ubuntu端:
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/djy/.ssh/id_rsa): (回车生成默认文件/home/djy/.ssh/id_rsa)
生成公钥文件/home/djy/.ssh/id_rsa.pub和私钥文件/home/djy/.ssh/id_rsa。把公钥给管理员注册。
$git clone git@192.168.10.110:znap.git
ssh自动识别刚才生成的私钥,并和注册的公钥进行匹配。匹配成功即登录成功。
评论暂时关闭