码云/git 设置公钥

1.打开mac终端;

2.终端执行 ssh-keygen -t rsa -C "XXXX.com"

3.终端执行 cat ~/.ssh/id_rsa.pub

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxZFHR4LhUxSeqZK2L6m+My5brHmqiEoN+z+nXX3CB1oIBFsBnLVFZNsmHjGKsKU21GAhZnrLE0b0nU0WbwU5hwi9lCbpopz5iWFQAbxQn+Ycd10wE8RFVviWV+vbFzeIRijQ0bAFbLGua7gcmVTACo86lnKVovec/kyAUMD78z6iwdWYEXouwqdA3lCZyoxw6xitW92epHtUIrHpCl2p9qodrfJk5kCwFtGD33BErK8sLGWTKmFUz7VXPZSeoxt4Whfx+QQpCHvyOczgzQJoQ+Iy+1S+LIrbP2dFNRC7VLk7m4QVxK3GGXoDUNLEXZdhBOzfc2RTPjJRQRX4aMW+H XXXX.com

4.在码云添加公钥和key

公钥key则为XXXX.com,公钥则为上一步黑体部分

5.终端执行 ssh -T [email protected]

6.目前就完成了。

转载于:https://juejin.im/post/5cd1749af265da039257f8dc

你可能感兴趣的:(码云/git 设置公钥)