标签:tty install text get 证书 open add dream pos
groupadd -g 11111 git useradd -md /home/git -g 11111 -u 11111 git
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel yum install git
su - git
ssh-keygen 一路回车即可 cd /home/git/ chmod 755 .ssh touch .ssh/authorized_keys chmod 644 .ssh/authorized_keys
# 若B机器的用户user2需要克隆A机器上用户user1的仓库,则需要将B机器的用户user2下的公钥添加到A机器上用户user1下的授权列表authorized_keys中。
su - git cd /home/git mkdir -p repository/dream cd repository/dream git init --bare dream.git
# 将公钥添加上去才能克隆
git clone git@192.168.1.111:/home/git/repository/dream/dream.git
标签:tty install text get 证书 open add dream pos
原文地址:https://www.cnblogs.com/igoodful/p/11886439.html