###配置ssh
local:~ yourname$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/u/kim/.ssh/id_rsa): 【回车】 Enter passphrase (empty for no passphrase): 【直接回车】 Enter same passphrase again: 【直接回车】
###新建一个config
Host bitbucket.orgHostname altssh.bitbucket.orgPort 443
###查看rsa
ls -ltrtotal 32-rw-r--r-- 1 knight.lu staff 410 Nov 7 14:22 id_rsa.pub-rw------- 1 knight.lu staff 1679 Nov 7 14:22 id_rsa-rw-r--r-- 1 root staff 60 Nov 7 14:33 config-rw-r--r-- 1 knight.lu staff 2147 Nov 7 14:34 known_hosts
###将id_rsa.pub添加到公钥
cat id_rsa.pub
###测试
ssh -T git@bitbucket.org如果显示(yes/no)表示已经可以使用bitbucket了
###引用
[19:16:16]: There are no local code signing identities found.You can run `security find-identity -v -p codesigning` to get this output.This Stack Overflow thread has more information: https://stackoverflow.com/q/35390072/774.(Check in Keychain Access for an expired WWDR certificate: https://stackoverflow.com/a/35409835/774 has more info.)
###ssh安全参考