add ssh-key to github

1 In local machine

ssh-keygen

press enter for several times

2 cat ~/.ssh/id*.pub

ssh-rsa AAAAB3NzaC1yc2EAXXABIwAAAQEA+1Lstj74REHfWKOvptOBnKzAYhtwQkvEwkLTtf5tyYk1y05s9YTdB4bIH525S/X1irrz165MOb45oZrmELwtIOS0xrNirgUCcTMKbWelJraYzIDMUmwoaMb6YxVsmDXXAKrlio7LpSk8gk2+w6e1CuNoBDm4DwSPUyA1dpfVqwqrju/Y/YcsaKk/jufTnHyh87UTJIO67vc0vKHaEg5k1wok0rN9GR1kYz7bnz6XK3GvidlH13L5cdWGdbsfC//1hyAuG3Fv24iieXfXXXnmjrV971VXLEoFIAfLymt8s5thzpPXhQBXglBwoJraoz/3PCKSQPtprURuvGOzfzT+MQ== root@ckf

3 paste the content to github

你可能感兴趣的:(add ssh-key to github)