This section describes the procedure for creating a clone.
First, let's create a key.
% ssh-keygen
+---[RSA 3072]----+
| .o |
| .o o |
| + o o |
| . o . . |
| S . o.. |
| ..o =.o o.= |
|o .+..+.*...+ |
|=oo.+++o.+o. |
|*+o=BE. .oo. |
+----[SHA256]-----+
How to register the key on github.
Register the key on Github as shown by the arrow
% ls ~/.ssh
id_rsa id_rsa.pub known_hosts rsa_GitHub rsa_GitHub.pub
,,, Copy the contents of id_rsa.pub.
% vi ~/.ssh/id_rsa.pub
Enter and put the displayed contents in the blank box of "key".
Issue Add SSH KEY.
Registration is completed with.
Open a terminal and enter the following command
% git clone [email protected]:ochun0116/saku202010.git
Cloning into 'saku202010'...
Enter passphrase for key '/Users/yuota/.ssh/id_rsa':
Enter your password. (Since the password does not respond even if you enter it), enter when you finish entering.
remote: Enumerating objects: 8337, done.
remote: Counting objects: 100% (8337/8337), done.
remote: Compressing objects: 100% (5221/5221), done.
remote: Total 8337 (delta 2045), reused 8337 (delta 2045), pack-reused 0
Receiving objects: 100% (8337/8337), 12.16 MiB | 5.62 MiB/s, done.
Resolving deltas: 100% (2045/2045), done.
Updating files: 100% (6155/6155), done.
That's it!
Confirm that the clone has been created.
Recommended Posts