ssh配置
生成公鑰和私鑰
mkdir .ssh
ssh-keygen -t rsa -C "[email protected]"
編寫ssh配置文件, ~/.ssh、config 格式如下
Host 192.168.2.168 ##gitlib 的地址
Port 65089
gitlab配置
在gitlab的個人首頁,上傳公鑰
生成公鑰和私鑰
mkdir .ssh
ssh-keygen -t rsa -C "[email protected]"
編寫ssh配置文件, ~/.ssh、config 格式如下
Host 192.168.2.168 ##gitlib 的地址
Port 65089
gitlab配置
在gitlab的個人首頁,上傳公鑰