GitHub and Bitbucket的ssh设置

1、安装Git客户端(Linux)
#apt-get install git
#apt-get install openssh-server
2、生成密钥对,这样项目可以push到 GitHub(Bitbucket)上
#ssh-keygen -t rsa -C "[email protected]"
命名为github
3、 使用 ssh-add github 指令将私钥 加进来
4、将.ssh/id_rsa.pub拷贝到GitHub(Bitbucket)网站

#xclip -sel clip < ~/.ssh/github.pub
5、ssh -T [email protected]来测试是否配置成功

你可能感兴趣的:(github,ssh,Bitbucket)